Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

autowrapt_logger-1.2-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page