logging.setLoggerClass()

logging.setLoggerClass(klass)

Tells the logging system to use the class klass when instantiating a logger. The class should define __init__() such that only a name argument is required, and the __init__() should call Logger.__init__(). This function is typically called before any loggers are instantiated by applications which need to use custom logger behavior.

doc_python
2016-10-07 17:36:26
Comments
Leave a Comment

Please login to continue.