Skip to main content

Logging utilities for personal use.

Project description

logging-utils-tddschn

Logging utilities for personal use.

Install

$ pip install logging-utils-tddschn

Example Usage

get_logger

Check the source code linked above to learn more about the arguments.

from logging_utils_tddschn import get_logger

logger, _ = get_logger(__name__)
logger.info('Logging from logging-utils-tddschn!')
_DEBUG=1 python3 app.py
# prints something like
# INFO:tests.test_utils_naive:/Users/tddschn/app.py:5:my_func:Logging from logging-utils-tddschn!

# logging is turned off (sent to NullHandler) if you don't set env var _DEBUG or it's set to false.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logging-utils-tddschn-0.1.10.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

logging_utils_tddschn-0.1.10-py3-none-any.whl (3.4 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