Thursday, July 25, 2013

Logging Handler With Buffering And Uses Amazon SES For Python


This Python logging handler can be used to combine multiple log message in one email message and send the log email using Amazon SES. Boto is used to send email using Amazon SES.



Email will be send once the buffer reaches the capacity you've specified. To force send the email before it reaches the buffer capacity you can shutdown the logger by calling its shutdown method.You can simultaneously keep logging in file or other places by adding more handler.

0 comments:

Post a Comment

Comments are moderated. No spam please.