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.13.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file logtron-aws-0.1.13.tar.gz
.
File metadata
- Download URL: logtron-aws-0.1.13.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd42db4b83f8adda73ee4bf219207c05f2db7e534280e3b696778f255ed760bf |
|
MD5 | 9fa3ba10615dabd2abe01094c3e54373 |
|
BLAKE2b-256 | 814a1f18cf1352b0970b20ae8b5977ed1eaabd31829fa7787fc465c5a9c358e3 |
File details
Details for the file logtron_aws-0.1.13-py2.py3-none-any.whl
.
File metadata
- Download URL: logtron_aws-0.1.13-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d42d00ebf2269d036c04f20c1c9db6aae4288af6564b2ffd1d2467bca03897 |
|
MD5 | d50377d7348f700ea3abfbec3f228255 |
|
BLAKE2b-256 | 15fe7127f383a1bb6540f3680dc5ae5ddf9ed0a9a2a2a2035ac56df211503cc7 |