observability

Python default and multi level logging

Python default and multi level logging Question: From what I read and understood, Python logging module by default logs to stderr. If I run this python code: import logging logging.info(‘test’) logging.warning(‘test’) logging.error(‘test’) logging.debug(‘test’) as python main.py 1> stdout.txt 2> stderr.txt I get my logs in stderr.txt and nothing in stdout.txt – my logs are redirected …

Total answers: 2