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.7.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file logtron-aws-0.1.7.tar.gz
.
File metadata
- Download URL: logtron-aws-0.1.7.tar.gz
- Upload date:
- Size: 7.6 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 | 6f7f4fdb76f64221794ed91e77c026905c6f16d39d0c32fc3e2845bf701dc839 |
|
MD5 | 78f7f0d9edc5b6b34a8385eaf22c85b3 |
|
BLAKE2b-256 | 1980e11eb973418d2bb0fc31422cc280e98645173d3ef0646b2f3e0f6ffa2bdb |
File details
Details for the file logtron_aws-0.1.7-py2.py3-none-any.whl
.
File metadata
- Download URL: logtron_aws-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 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 | 847690ac71e56e3b03e047fedfd5fef32e582d4b60a025ab3f833c5b1cb052fd |
|
MD5 | 0b717e5b23603294b957c673402b53ad |
|
BLAKE2b-256 | d0fdccee2e054bbffeb0c1be8bef312afe42d681e1482bf3277287479aa7c730 |