Skip to main content

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.

Downloads Supported Versions Contributors Build Status codecov

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


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 details)

Uploaded Source

Built Distribution

logtron-0.1.5-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file logtron-0.1.5.tar.gz.

File metadata

  • Download URL: logtron-0.1.5.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.0 Linux/4.15.0-1077-gcp

File hashes

Hashes for logtron-0.1.5.tar.gz
Algorithm Hash digest
SHA256 46ec89d5c89941db9db197192612748de1a91683d09ce4189dd9a7df15f34140
MD5 f2c996c3466f7505ead9afdaf255cb2b
BLAKE2b-256 63f109ab9d53b5a02fbde463d5d6e6c0f53eefb402d1720d141974fcc9da6828

See more details on using hashes here.

File details

Details for the file logtron-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: logtron-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.0 Linux/4.15.0-1077-gcp

File hashes

Hashes for logtron-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ec70e30f35f83911eebed1bfa647da9d1008bfa4c1edf2fb3dda1b88f7fc938e
MD5 6ad1523912d80aa344b10bd8e07972d4
BLAKE2b-256 d00cb3024ff5acf67b185ccb1c94c429c1d25c01708060b83996dd141066ce0a

See more details on using hashes here.

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