PyDocs

Nav

Generic Operating System Services

LogRecord

logging

class (source)
  • LogRecord(name, level, pathname, lineno, msg, args, exc_info, func=None, sinfo=None)
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.
Changed in 3.2
  • 3.2: The creation of a LogRecord has been made more configurable by providing a factory which is used to create the record. The factory can be set using getLogRecordFactory() and setLogRecordFactory() (see this for the factory’s signature).
Members of LogRecord

g

getMessage
Return the message for this LogRecord.
0 Examples
No examples for logging/LogRecord.
See Also
No see-alsos for logging/LogRecord
0 Notes
No notes for LogRecord