Python logger for logging using correlation id in production.
Project description
Correlation logger
Production-ready logging library for Python. The aim here is to be able to use correlation ids for generating actionable production logs. By including the correlation id within the method signature, it helps a team to standardize the correlation id based logging in the production code. With the presence of correlation ids, it is possible to track events and errors across the service and application boundaries.
Example usage
service a --calls--> service b --calls--> service c with the correlation Id: 16db3469-7dde-442e-ae1f-5073f9b737c6. All log files across the services will then contain this id in the logs allowing us to trace the impact of the chain of service calls.
Log types
The logs are published in two types of configurable log sinks:
- Console
- AWS cloudwatch logs It supports correlation ids or salt to perform detail tracing of the events.
To activate virtual environment
poetry shell
To build project
poetry build
To test project
poetry run pytest -v
Pypi project installation
pip install correlation-logger
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
Built Distribution
File details
Details for the file correlation_logger-1.1.0.tar.gz
.
File metadata
- Download URL: correlation_logger-1.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e043a14ddab0aad38e35847709a8dc52579227ea95ee6d70bb980258785fd1c |
|
MD5 | e63344c5e0b46eefdb3055e567b80076 |
|
BLAKE2b-256 | 9140f263898b198e7997bf614a383c80e416e6990bfcda82e14812a15c881d8d |
File details
Details for the file correlation_logger-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: correlation_logger-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7902938f574df1d3c628ddc51115b361d7614a19f2b40ca8a0d45890c537f363 |
|
MD5 | 0416f277c75be9d809dbb3e37a8663dc |
|
BLAKE2b-256 | 45ad89285e43353151cdb73b4e80977bd8be7647f8586a67ece61667f96ac69d |