Package logging :: Class LogRecord
[hide private]
[frames] | no frames]

_ClassType LogRecord

A LogRecord instance represents an event being logged.

LogRecord instances are created every time something is logged. They contain all the information pertinent to the event being logged. The main information passed in is in msg and args, which are combined using str(msg) % args to create the message field of the record. The record also includes information such as when the record was created, the source line where the logging call was made, and any exception information to be logged.

Instance Methods [hide private]
 
__init__(self, name, level, pathname, lineno, msg, args, exc_info, func)
Initialize a logging record with interesting information.
 
__str__(self)
 
getMessage(self)
Return the message for this LogRecord.
Method Details [hide private]

getMessage(self)

 

Return the message for this LogRecord.

Return the message for this LogRecord after merging any user-supplied arguments with the message.