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' )
2 Answers
+ 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' )
0
But some use function and it work