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.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: logtron-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 a8a6aac35721864c038883c8ca83e08d4494dadb3d20897de1b46036b9c7e157
MD5 10beccbba6140a00fd4e0e3484cff6ba
BLAKE2b-256 0235130404459d76a7b9f20b27bf051eedb88f0934b15b03c55ef53d8646fedc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logtron-0.1.4-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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2f879f076131abcda31425843387dc83fb11c454aac077fcd53bd4f5d391cb9c
MD5 ec12e74779c0bb834477f8918c85a205
BLAKE2b-256 c16c089bfd1f795661beb255bab849c4d3e891ab9a6cc4869413ae1deba34e19

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