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.3.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file logtron-0.1.3.tar.gz
.
File metadata
- Download URL: logtron-0.1.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/4.19.104-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20f5f9ea0314327af2bdf6b884c057ad32c534711b0772a3f9c6e8b3c67b7f78 |
|
MD5 | 84383e1caf9338c3de482f6a57d9cb52 |
|
BLAKE2b-256 | 3441ae1cbaec2e560acb5df348b7c423a831ebc1cef883d721b681a8ae6e6460 |
File details
Details for the file logtron-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: logtron-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/4.19.104-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089f98b850a94b5e4bd546721e6774ae19de8b6acc920ee7b7b995da47eb117b |
|
MD5 | 62977167610a8ab6a6fff235d9d02572 |
|
BLAKE2b-256 | 49f05ba22575faa27827c47a974e1fb1d0abeb7e7c76641112762f5051c79c40 |