Skip to main content

omni:us python logging package

Project description

https://readthedocs.org/projects/reconplogger/badge/?version=stable https://codecov.io/gh/omni-us/reconplogger/branch/main/graph/badge.svg https://badge.fury.io/py/reconplogger.svg https://img.shields.io/badge/contributions-welcome-brightgreen.svg

reconplogger - omni:us python logger

Docs: https://reconplogger.readthedocs.io/ | Source: https://github.com/omni-us/reconplogger/

This repository contains the code of reconplogger, a python package intended to ease the standardization of logging within omni:us. The main design decision of reconplogger is to allow total freedom to reconfigure loggers without hard coding anything.

The package contains essentially the following things:

  • A default logging configuration.

  • A function for loading logging configuration for regular python code.

  • A function for loading logging configuration for flask-based microservices.

  • Root logger configuration via LOGGER_ROOT_HANDLER so third-party library logs are also captured.

  • Automatic correlation ID management in Flask services via flask_app_logger_setup.

  • An inheritable class to add a logger property.

  • A context manager to set and get the correlation id.

  • Lower level functions for:

    • Loading logging configuration from any of: config file, environment variable, or default.

    • Replacing the handlers of an existing Logger object.

    • Function to add a file handler to a 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

reconplogger-5.0.0.dev1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

reconplogger-5.0.0.dev1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file reconplogger-5.0.0.dev1.tar.gz.

File metadata

  • Download URL: reconplogger-5.0.0.dev1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reconplogger-5.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 ac440696b06424d806d8683f3bfcdc2daa659828cc5d9cee9a5af014a98bacdd
MD5 72f4b2fd89cbd3459adab9399217b6be
BLAKE2b-256 2c123a462909605460e44b1bed980aa2288f9862050801a29f51b23a4cc380e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for reconplogger-5.0.0.dev1.tar.gz:

Publisher: tests.yaml on omni-us/reconplogger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reconplogger-5.0.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for reconplogger-5.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 882e071cd4a33e5c8080bca72322a66eb8c254a7de8f0ca1dd38de82526cc6d7
MD5 ffe96d931b040a0fe63f31e2043b9db2
BLAKE2b-256 730cef26493b1e1d4026038d90721bc5ba201ad34d990cb405efc66fa6dc5b4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for reconplogger-5.0.0.dev1-py3-none-any.whl:

Publisher: tests.yaml on omni-us/reconplogger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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