import logging
if __name__ == "__main__":
logging.info('info')
logging.warn('warning')
logging.error('error')
Result:
warning
error
Why does logging.info not report anything?
Your log level is set so that 'info' won't print; by default it doesn't print anything less than WARNING. See Logger.setLevel.
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