A Structured Logger For Telemetry
Project description
Structlog-Telemetry
Structlog-Telemetry is a very simple custom Python structured logger library.
Installation
python3 -m pip install -i https://test.pypi.org/simple/ structlog-telemetry
Usage
from structlog_telemetry.structlog_telemetry import StructLogTelemetry
APP_NAME = "APP_X"
APP_VERSION = "v0.0.1"
logger = StructLogTelemetry(APP_NAME, APP_VERSION)
logger.info({"KEY_NOT_FOUND": "SEARCHED_KEY"})
logger.warning({"LATENCY": "30"})
logger.error({"SERVER_TIMEOUT": {"SERVER": "test.com", "TIMED_OUT_AFTER": 10}})
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
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
structlog_telemetry-0.0.27.tar.gz
(77.8 kB
view hashes)
Built Distribution
Close
Hashes for structlog_telemetry-0.0.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3257cf64da1f29420e507df0898d0f7c8529af8596fd8389e2e9e0f2dfbd1db7 |
|
MD5 | 45163b4fc24e92ad505236b0696fc7d9 |
|
BLAKE2b-256 | e1c0e3f0e6f6775f5a681bb5762c03ddb96c8fbc299af4f74cfc2d1cf02f7d88 |
Close
Hashes for structlog_telemetry-0.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9aab265e2684bfe6ceb3004694cb5cb5cc59c939f6aba6ceb874695c1d72dbe |
|
MD5 | f67898acceca1b2694dd3d931e75b3fe |
|
BLAKE2b-256 | 3722cf6630713f7441d6fa88997edea777f26c9667ef41651c55f92a8deebe73 |