Re: examples of logger using smtp

2008-01-18 Thread Vinay Sajip
On Jan 17, 7:46 pm, Rob Wolfe <[EMAIL PROTECTED]> wrote: > > If you need to use smtp authentication there is a small problem > with `SMTPHandler`. Actually, you need to subclass `SMTPHandler` > and override `emit` method, e.g.: > > fromloggingimport getLogger, Formatter, DEBUG > fromlogging.handler

Re: examples of logger using smtp

2008-01-17 Thread Rob Wolfe
DwBear75 <[EMAIL PROTECTED]> writes: > I am hoping to find some simple examples of how to create a logger > instance using smtphandler. I don't want to create a separate ini > file. I just want to sent the smtphost, from, to right in the code > when I instantiate the logger. I can't seem to find s

examples of logger using smtp

2008-01-16 Thread DwBear75
I am hoping to find some simple examples of how to create a logger instance using smtphandler. I don't want to create a separate ini file. I just want to sent the smtphost, from, to right in the code when I instantiate the logger. I can't seem to find simple code on how to do this. Any pointers ? -