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
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
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 ?
-