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+.

For more info, check out the documentation.


Last updated 9/24/2020, 9:31:21 AM