logging by environment
Project description
autowrapt-logger
A Python module that logging to stdout the delay time of module:method specified as an env, without the need to actually modify the Python application itself to setup the monkey patches.
Installation
pip install autowrapt-logger
Usage
The autowrapt-logger can then be activated without any code changes required by setting the following environment variable for your Python application:
AUTOWRAPT_BOOTSTRAP=autowrapt_logger INSTRUMENT_LIST="worker:logic_a,worker:logic_b,worker:get_db_data,worker:job" python3 example.py
This will cause the autowrapt-logger Python package to automatically instrument (like module:method) your Python application. it will print delay for instrumented method.
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for autowrapt_logger-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77d4413a95e0fc5837214fa04820a3a5a1c864c06d511e635ec07fddb0324555 |
|
MD5 | c10e5a20ab7be4ca78a09fb5862001bb |
|
BLAKE2b-256 | 09910d018cf21620dfbff12b7ae8eb212ea9ffe7ff112ec4a003aa883fb252e0 |