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_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

context_log_python-0.1.0.tar.gz (2.5 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.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for context_log_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43dab52beb2ea1273010243d1d9dc02a7868ca5c477e1f0c93aba08d7c87d478
MD5 e724a3f84ca2567d2f4709bdf3b02fd1
BLAKE2b-256 ebb4fd6579dea087083b17947665a97b75e3330825a656d68d495524d5c474da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for context_log_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87374469c01c13f1d57c5ed0dc3f9af411bb280c165076ca504f06c47044e6a8
MD5 fa83af0958e01c7f9cdfcf9cc049713d
BLAKE2b-256 d1fca2ac4704acd06c3c833c54c232f712127e0b65f6bc1cdef26c994ea8c3c8

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