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.10.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file logtron-aws-0.1.10.tar.gz
.
File metadata
- Download URL: logtron-aws-0.1.10.tar.gz
- Upload date:
- Size: 7.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 | 295a05de3a511101d9ac1f26ed659bcf5fc3f5d1faea9eb7fd158f43d10fcacb |
|
MD5 | a931d1a95e3bd9d6156ce48f876a074b |
|
BLAKE2b-256 | 4597205f5f264b857429df4653599d82c9d3cbb4e566fe007df7d650567d5d9e |
File details
Details for the file logtron_aws-0.1.10-py2.py3-none-any.whl
.
File metadata
- Download URL: logtron_aws-0.1.10-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 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 | c7b31d8056127f1b5cf844afd37328a361411e829cf8b35e67503427661a7ec0 |
|
MD5 | 80905e9bd6b2bfcdd2ecf2bd48bbfd60 |
|
BLAKE2b-256 | ab24b5a4fc3b62440a8da6e872ba8d639d5d706f4c8f416e1493a419f839e96e |