|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
| def | __init__ (self, mailhost, fromaddr, toaddrs, subject) |
| def | getSubject (self, record) |
| def | date_time (self) |
| def | emit (self, record) |
Public Attributes | |
| mailhost | |
| mailport | |
| fromaddr | |
| toaddrs | |
| subject | |
Static Public Attributes | |
| weekdayname | |
| monthname | |
A handler class which sends an SMTP email for each logging event.
| def compat_logging.handlers.SMTPHandler.__init__ | ( | self, | |
| mailhost, | |||
| fromaddr, | |||
| toaddrs, | |||
| subject | |||
| ) |
Initialize the handler. Initialize the instance with the from and to addresses and subject line of the email. To specify a non-standard SMTP port, use the (host, port) tuple format for the mailhost argument.
| def compat_logging.handlers.SMTPHandler.date_time | ( | self | ) |
Return the current date and time formatted for a MIME header.
| def compat_logging.handlers.SMTPHandler.emit | ( | self, | |
| record | |||
| ) |
Emit a record. Format the record and send it to the specified addressees.
| def compat_logging.handlers.SMTPHandler.getSubject | ( | self, | |
| record | |||
| ) |
Determine the subject for the email. If you want to specify a subject line which is record-dependent, override this method.
| compat_logging.handlers.SMTPHandler.fromaddr |
| compat_logging.handlers.SMTPHandler.mailhost |
| compat_logging.handlers.SMTPHandler.mailport |
|
static |
| compat_logging.handlers.SMTPHandler.subject |
| compat_logging.handlers.SMTPHandler.toaddrs |
|
static |
1.8.13