TLSSMTPHandler¶
-
class
support.logs.
TLSSMTPHandler
(mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, timeout=5.0)¶ Bases:
logging.handlers.SMTPHandler
Custom handler for email logging using TLS encryption.
Examples:
Set up an instance to do gmail email logging.
from cred import my_address, my_username, my_password to_address = ["someemail@somedomain"] eh = TLSSMTPHandler(mailhost=("smtp.gmail.com",587), fromaddr=my_address, toaddrs=to_address, subject="subject",Overriden method. credentials=(my_username, my_password), secure=None)
Methods Summary
emit
(record)Format a logging record and send it to the specified addresses.
Methods Documentation
-
emit
(record)¶ Format a logging record and send it to the specified addresses. This method is never called directly.
-