Skip to main content

AWS CloudWatch logging and context auto-discovery for logtron

Project description

Logtron-AWS

Release Downloads Supported Versions License

Build Coverage Documentation Maintainability Tech Debt Issues

Logtron-AWS is a set of AWS-targeted extensions for the Logtron library.

import logtron_aws
logger = logtron_aws.autodiscover()
logger.info("hello world")

Or

import logtron_aws
logtron_aws.autodiscover() # Only needs to run once somewhere to configure the root logger

import logging
logger = logging.getLogger()
logger.info("hello world")

Logtron-AWS provides a set of extensions for the Logtron library to enable features such as:

  • Automated log context discovery using AWS STS
  • Log handler for logging directly to CloudWatch Logs
    • Automatic log group creation
    • Convention-based log group naming derived from IAM role name
    • Configurable log retention period
    • Automated background log batch submission to support high frequency logging
    • Configureable batch submission time interval
  • Highly configurable if needed, but has sane defaults out-of-the-box

Installing Logtron-AWS and Supported Versions

Logtron-AWS is available on PyPI:

$ python -m pip install logtron-aws

Logtron-AWS 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-aws-0.1.15.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

logtron_aws-0.1.15-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file logtron-aws-0.1.15.tar.gz.

File metadata

  • Download URL: logtron-aws-0.1.15.tar.gz
  • Upload date:
  • Size: 8.9 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-aws-0.1.15.tar.gz
Algorithm Hash digest
SHA256 f5779e2e234f4b9ef5cb4ca3d7787f205d6f7e1196a3ce226485fbef81692af9
MD5 b66c7fb94569e4c3f7e5679d781e36cf
BLAKE2b-256 81a4b3743c51032b724c3feb1b510c58cbcfc8352097b89ce9f39b1f4bdf47d4

See more details on using hashes here.

File details

Details for the file logtron_aws-0.1.15-py2.py3-none-any.whl.

File metadata

  • Download URL: logtron_aws-0.1.15-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 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_aws-0.1.15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ba5681dddb7e32c0a575643a6b052e208615af933c2b428955ec9b22465e9eb8
MD5 8670d878875c90da6470287df46b4bc9
BLAKE2b-256 bec25a21d3a973f0dac7d9a88787316ba80901a4135594afdb730ab1e2a0a6fb

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