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.12.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file logtron-aws-0.1.12.tar.gz
.
File metadata
- Download URL: logtron-aws-0.1.12.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 | 4176e73a609c229455c1b1c32ab11cb36d3747ad46f809adb1f9d0ceda2c329b |
|
MD5 | 1e638e476961922e4c1f1231456d90a7 |
|
BLAKE2b-256 | 39cc6f9a054521be420b9d46a43ce4bbd3d3fe1a3c56f591998e5028f13ce443 |
File details
Details for the file logtron_aws-0.1.12-py2.py3-none-any.whl
.
File metadata
- Download URL: logtron_aws-0.1.12-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 | 6dcb30b578f1fe60b00b48937881734ef677741e3e4795c893c8c68cbe0443f5 |
|
MD5 | b25543bdbce585101ce98333baf5f731 |
|
BLAKE2b-256 | 7b50b28ea371e2889f8f2bc71b43005874babd189aee9b138934d72fc38d5b88 |