The logger is defined within the __init__.py which is run before __main__.py and the first time someone runs import testing_python_logging which ensures that the module level logger for the package is always defined.
Please install as a package by doing
git clone git@github.com:tabedzki/testing_python_logging.git
cd testing_python_logging
pip install -e .The code can be run by using the code as a module
python -m testing_python_loggingor run as a library through the example script
python outer_and_inner_logger.pyAlternatively, if you wish to pipe stderr to a file run python outer_and_inner_logger.py > console.log 2>&1.