0

What cost logging module basicConfig an error

import logging logging.basicConfig(level=logging.debug,filename ='hi.txt', filemode= 'w',format= '%(asctime)s') logging.debug('from debug' )

25th Jul 2022, 6:08 PM
Bean Hong
2 Respostas
+ 2
The level should be a string or a number, this works but doesn't give any output: import logging logging.basicConfig(level="DEBUG",filename ='hi.txt', filemode= 'w',format= '%(asctime)s') logging.debug('from debug' )
26th Jul 2022, 5:17 PM
Paul
Paul - avatar
0
But some use function and it work
29th Jul 2022, 1:36 AM
Bean Hong