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

Class LogRecord

source code

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)
Initialize a logging record with interesting information.
source code
 
__str__(self) source code
 
getMessage(self)
Return the message for this LogRecord.
source code
Method Details [hide private]

getMessage(self)

source code 

Return the message for this LogRecord.

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