I'm trying to turn on debug logging in python 3.5.2:
import logging
log = logging.getLogger('test')
log.setLevel(logging.DEBUG)
log.warn('warn')
log.debug('debug')
log.root.setLevel(logging.DEBUG)
log.debug('debug again')
However, this only prints warn
. What am I missing?
Try this
logging.basicConfig(level=logging.DEBUG)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With