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.18.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file logtron-aws-0.1.18.tar.gz
.
File metadata
- Download URL: logtron-aws-0.1.18.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 | ed5617f02d006684809f713c8eeac80030c4e10965f96fda6ce0a7e274d1aefb |
|
MD5 | 585a54fccb3d9bf5fc37530cb0d69f74 |
|
BLAKE2b-256 | 58fbbae2c8d714d7e924379d0103317d01b9b4c580993329d68d1dad6d735c4c |
File details
Details for the file logtron_aws-0.1.18-py2.py3-none-any.whl
.
File metadata
- Download URL: logtron_aws-0.1.18-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 | 193782a597670522f6b80ace74f8531891bbcc73c0cc5718334fcdf45fb18f9b |
|
MD5 | 48e5e0f18e3593f2229b09604973bc74 |
|
BLAKE2b-256 | 6c64ec5e8cc6acf46ec70c879a9d42dcdfff8ca7714d6e09ed80904bdf9d5f37 |