A simple logging library with JSON log formatting
Project description
Logtron
Logtron is a simple logging library with JSON log formatting.
import logtron
logger = logtron.autodiscover()
logger.info("hello world")
Or
import logtron
logtron.autodiscover() # Only needs to run once somewhere to configure the root logger
import logging
logger = logging.getLogger()
logger.info("hello world")
Logtron allows you to skip all the usual boilerplate when configuring python logging.
Logtron will default to a console JSON log formatter that is compatible with popular log aggregators such as Logstash, Fluent Bit, or AWS CloudWatch Logs.
Installing Logtron and Supported Versions
Logtron is available on PyPI:
$ python -m pip install logtron
Logtron officially supports Python 2.7 & 3.5+.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logtron-0.1.5.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for logtron-0.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec70e30f35f83911eebed1bfa647da9d1008bfa4c1edf2fb3dda1b88f7fc938e |
|
MD5 | 6ad1523912d80aa344b10bd8e07972d4 |
|
BLAKE2b-256 | d00cb3024ff5acf67b185ccb1c94c429c1d25c01708060b83996dd141066ce0a |