Metadata-Version: 2.1
Name: autowrapt-logger
Version: 1.3
Summary: logging by environment
Home-page: https://github.com/eunchong/autowrapt-logger
Author: eunchong
License: BSD
Platform: UNKNOWN
Description-Content-Type: text/x-rst
Requires-Dist: autowrapt (>=1.0)

================
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.



