Skip to main content

A contextual logging framework for Python

Project description

Context Logger

A Python package that provides a contextual logging framework, enabling you to log detailed function names, line numbers, local variables, and custom context information. This helps you understand what happened in your program by enriching your logs with useful context.

Features

  • Capture function names, line numbers, and local variables in logs.
  • Easily integrate into your existing code with decorators.
  • Log exceptions with full stack traces and context.
  • Customizable logging with support for additional context like user/session IDs.

Installation

To install the package, use:

pip install context-log-python

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

context_log_python-0.1.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

context_log_python-0.1.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file context_log_python-0.1.3.tar.gz.

File metadata

  • Download URL: context_log_python-0.1.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for context_log_python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 20f74dea8f284bf91799a42189b9b7f2bc7d40cc8cfadd1cce77f711554c6355
MD5 371bea2b405683a74445a3b8fc774f84
BLAKE2b-256 2d18b9d5ed339939f87eeb7643e18f8585b37cc1ec7fe02e8e2ca641dd065e45

See more details on using hashes here.

File details

Details for the file context_log_python-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for context_log_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 18c595929ca5a85e72a6ddd4ec1afd82368550a930b94400b81313d1a26be303
MD5 7ac5fd3ea3576d9edfedc4141a1b3d9a
BLAKE2b-256 a83780bf15c126b2e9ed47d11a3cfcd8c7cb44855a3b119b83a22c217966034b

See more details on using hashes here.

Supported by

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