logging by environment
Project description
A Python module for print logging of a Python application, without the need to actually modify the Python application itself to setup the monkey patches.
The package works in conjunction with the autowrapt and wrapt module. One would create post import hook patch modules per autowrapt module requirements, and then list the names of the setuptools entrypoints you wish to activate in the AUTOWRAPT_BOOTSTRAP environment variable, when executing Python within the environment that the autowrapt module is installed.
To understand what is possible, a set of examples is also installed with this package. To see the examples in action run the following:
AUTOWRAPT_BOOTSTRAP=autowrapt_logger INSTRUMENT_LIST="worker:logic_a,worker:logic_b,worker:get_db_data,worker:job" python3 example.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for autowrapt_logger-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117259a8ab16ded8df0f199a7f151ed4700cf007b26d1c38e6ef31a8394f0212 |
|
MD5 | 2e8f5e65d4037c7b25d38b01eea8e7f4 |
|
BLAKE2b-256 | 5ae9ae44f71a0e5d026e3f298ce6364982e8a1e10f6d7768eb3d793b8b130a9d |