Python Logging Output
Complete table showing the various information that the logging system can output:
%(name)s | Logger's name |
---|---|
%(levelno)s | Log level in digital form |
%(levelname)s | Log level in text form |
%(pathname)s | The full path name of the module that called the log output function, may not have |
%(filename)s | The file name of the module that called the log output function |
%(module)s | Call the module name of the log output function |
%(funcName)s | Call the function name of the log output function |
%(lineno)d | The line of code where the statement that called the log output function is located |
%(created)f | Current time, expressed in floating point numbers representing the time of the UNIX standard |
%(relativeCreated)d | The number of milliseconds since the Logger was created when the log information was output. |
%(asctime)s | The current time in the form of a string. The default format is "2003-07-08 16:49:45,896". Behind the comma is the millisecond |
%(thread)d | Thread ID. Maybe not |
%(threadName)s | Thread name. Maybe not |
%(process)d | Process ID. Maybe not |
%(message)s | User output message |