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.2.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for lazy_logging-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9c8edb221fffd8a280e2a2a8e4f24751a59a06e0e3814b4a89adf97de1548fd |
|
MD5 | bb109b7c1b69ea596ab80020c32038b9 |
|
BLAKE2b-256 | 04fea9e1228d42d71b6f2ecd58cae99189c99d97515575cd56955a047a656068 |