![]() ![]() 23:47:11,665 - spam_application - INFO -Ĭreated an instance of auxiliary_module.Auxiliary 23:47:11,663 - spam_application - INFO -Ĭreating an instance of auxiliary_module.Auxiliary info ( 'done with auxiliary_module.some_function()' ) info ( 'calling auxiliary_module.some_function()' ) auxiliary_module. info ( 'finished auxiliary_something' ) logger. info ( 'calling auxiliary_something' ) a. info ( 'created an instance of auxiliary_module.Auxiliary' ) logger. ![]() info ( 'creating an instance of auxiliary_module.Auxiliary' ) a = auxiliary_module. setFormatter ( formatter ) # add the handlers to the logger logger. Formatter ( ' %(asctime)s - %(name)s - %(levelname)s - %(message)s ' ) fh. ERROR ) # create formatter and add it to the handlers formatter = logging. DEBUG ) # create console handler with a higher log level ch = logging. DEBUG ) # create file handler which logs even debug messages fh = logging. Import logging import auxiliary_module # create logger with 'spam_application' logger = logging.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |