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+.
For more info, check out the documentation.
Release files for logtron-aws 0.1.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| logtron-aws-0.1.20.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| logtron_aws-0.1.20-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / logtron-aws-0.1.20.tar.gz
| Download URL | logtron-aws-0.1.20.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b74dbee90ccae102464802c38c61bb572cea03cc401e47c20807a500d4bfea8
|
|
BLAKE2b-256 checksum How to use checksums |
d59e6ab94e6bdbae1734bc6e843962957bc13dd2b4a8e00224aec3fba0686db8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.0 Linux/4.15.0-1077-gcp
|
Release files / logtron_aws-0.1.20-py2.py3-none-any.whl
| Download URL | logtron_aws-0.1.20-py2.py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
073af6d53cb802ef9692a54736901a9093fb066cbcb9efa4ad454cf3dd9ad9e4
|
|
BLAKE2b-256 checksum How to use checksums |
119b1161365af9d98de2858d68cbcb5c5e402eb7d4ab5a2f1c797aabc4adee22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.0 Linux/4.15.0-1077-gcp
|