webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
compat_logging.handlers.SMTPHandler Class Reference
Inheritance diagram for compat_logging.handlers.SMTPHandler:

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
 

Detailed Description

A handler class which sends an SMTP email for each logging event.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ date_time()

def compat_logging.handlers.SMTPHandler.date_time (   self)
Return the current date and time formatted for a MIME header.

◆ emit()

def compat_logging.handlers.SMTPHandler.emit (   self,
  record 
)
Emit a record.

Format the record and send it to the specified addressees.

◆ getSubject()

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.

Member Data Documentation

◆ fromaddr

compat_logging.handlers.SMTPHandler.fromaddr

◆ mailhost

compat_logging.handlers.SMTPHandler.mailhost

◆ mailport

compat_logging.handlers.SMTPHandler.mailport

◆ monthname

compat_logging.handlers.SMTPHandler.monthname
static

◆ subject

compat_logging.handlers.SMTPHandler.subject

◆ toaddrs

compat_logging.handlers.SMTPHandler.toaddrs

◆ weekdayname

compat_logging.handlers.SMTPHandler.weekdayname
static

The documentation for this class was generated from the following file: