Re: logging.handlers.SMTPHandler question

2009-09-30 Thread Chris Withers
akonsu wrote: hello, SMTPHAndler seems to email every single record separately. is there a way to collect all log output and then send it in a single email message? or do i have to do it manually? You want the SummarisingHandler from this package: http://www.simplistix.co.uk/software/python/m

Re: logging.handlers.SMTPHandler question

2009-09-24 Thread Vinay Sajip
On Sep 24, 4:14 am, akonsu wrote: > hello, > > SMTPHAndler seems to email every single record separately. is there a > way to collect all log output and then send it in a single email > message? or do i have to do it manually? > > thanks > konstantin See also http://pypi.python.org/pypi/mailinglo

Re: logging.handlers.SMTPHandler question

2009-09-24 Thread Vinay Sajip
On Sep 24, 8:37 am, Vinay Sajip wrote: > On Sep 24, 4:14 am, akonsu wrote: > > > http://python.pinger.pl/m/552751/bufferingsmtphandler Looking back at it, it looks as if it's adapted from some test code I wrote back in 2002, see here: http://opensolaris.org/sc/src/xen-gate/xvm-3.3+xen.hg/tools/

Re: logging.handlers.SMTPHandler question

2009-09-24 Thread Vinay Sajip
On Sep 24, 4:14 am, akonsu wrote: > hello, > > SMTPHAndler seems to email every single record separately. is there a > way to collect all log output and then send it in a single email > message? or do i have to do it manually? > You can use a buffering SMTP handler, see: http://gist.github.com/1

logging.handlers.SMTPHandler question

2009-09-23 Thread akonsu
hello, SMTPHAndler seems to email every single record separately. is there a way to collect all log output and then send it in a single email message? or do i have to do it manually? thanks konstantin -- http://mail.python.org/mailman/listinfo/python-list