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.2.tar.gz (2.3 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.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: context_log_python-0.1.2.tar.gz
  • Upload date:
  • Size: 2.3 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.2.tar.gz
Algorithm Hash digest
SHA256 b52357659d7b3f916f8d33f3b77db9824f769b0570775f7433fb0b09b81c1429
MD5 b866009d56c4686e7a6b6dfc02094af5
BLAKE2b-256 643354b91f7a039faf17b6ec0b3bf3d563f46f09ebdeaa6de83ac7d518c57cb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for context_log_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b18d06a82cb5eeeaf3ccd2fb6caaaf1f4fea1b5c8441d97539cf796eee387648
MD5 e4f45a21d0a7c5587840d7b67dff06a8
BLAKE2b-256 6022995977f8ecafeaea051ccfc24a96ba2a38fe201231b18b6f45aba3d58a94

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