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 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.
name, lvl, pathname, lineno, msg, args, exc_info [, func]) |
None
.
Changed in version 2.5:
func was added.
) |
See About this document... for information on suggesting changes.