No project description provided
Project description
Logging for lazyass
Use cases:
I want pretty human-readable logs in stdout:
logger = logger_factory()
I want json-formatted logs in stdout to use with glef docker driver:
logger = logger_factory(json_stdout=True)
I want to save json-formatted logs to file and collect them with filebeat:
logger = logger_factory(log_dir='/var/logs', log_file='myapp')
I want to do the same in django settings.py:
LOGGING_CONFIG = None # <- default django config
LOG_DIR = '/var/logs'
LOG_FILE = 'myapp'
configure_django_logging()
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
lazy_logging-0.0.3.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for lazy_logging-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a89f7d7ce4849231db0daaea9271c072922fb3538eccfae002e4440cb82f908e |
|
MD5 | 43ed15aec5216e1c0607d965b01b6b43 |
|
BLAKE2b-256 | 5c9c5c7f4b3ff425517fc3f99ccf991d1ab7b330ac72989a0f131c2e5ab86440 |