AWS CloudWatch logging and context auto-discovery for logtron
Project description
Logtron-AWS
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
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-aws-0.1.16.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for logtron_aws-0.1.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4769bdc068e4e8d355dcbbb46ace3fca05a6e70e81d81a6da67b471a3fb4f388 |
|
MD5 | 793846666e5e0b99bdb25a20107139cc |
|
BLAKE2b-256 | e8fc6aacc4c5a5869be7d1b1bf4c7e34d2d4b79453faa630ca2603e23205eaa5 |