Skip to content

tabedzki/testing_python_logging

Repository files navigation

testing_python_logging

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.

Installation

Please install as a package by doing

git clone git@github.com:tabedzki/testing_python_logging.git
cd testing_python_logging
pip install -e .

Executing

The code can be run by using the code as a module

python -m testing_python_logging

or run as a library through the example script

python outer_and_inner_logger.py

Alternatively, if you wish to pipe stderr to a file run python outer_and_inner_logger.py > console.log 2>&1.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages