Skip to main content

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:

  1. Console
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

correlation_logger-1.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

correlation_logger-1.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

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

Hashes for correlation_logger-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2e043a14ddab0aad38e35847709a8dc52579227ea95ee6d70bb980258785fd1c
MD5 e63344c5e0b46eefdb3055e567b80076
BLAKE2b-256 9140f263898b198e7997bf614a383c80e416e6990bfcda82e14812a15c881d8d

See more details on using hashes here.

File details

Details for the file correlation_logger-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for correlation_logger-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7902938f574df1d3c628ddc51115b361d7614a19f2b40ca8a0d45890c537f363
MD5 0416f277c75be9d809dbb3e37a8663dc
BLAKE2b-256 45ad89285e43353151cdb73b4e80977bd8be7647f8586a67ece61667f96ac69d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page