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 with independent LOGGER_ROOT_LEVEL control.

  • Singleton logger setup (logger_setup); call reset_configs before reconfiguring.

  • 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.tar.gz (13.6 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-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reconplogger-5.0.0.tar.gz
Algorithm Hash digest
SHA256 a5b1018a1fd2ed2d6465a039d2a396331731164f0085dd0c704a50e9d6fa4fe9
MD5 6220d8e335cadf974266e62b0981e60a
BLAKE2b-256 352e959bc4ce2192c89f67666a3b563b6ee0d570977b82cf16777b2a085d2d1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for reconplogger-5.0.0.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-py3-none-any.whl.

File metadata

  • Download URL: reconplogger-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for reconplogger-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2195cb5a0dcec38dd98f1f9ed2ae0ebcfb2594233d6b1a4c2ce378c7388af703
MD5 491a66546e9ac272d7b6c90d3ffac4b9
BLAKE2b-256 811d191af236fb112b544c7ff61c9ade15bc9b68830d8e5aa21a9395f3ae8cbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for reconplogger-5.0.0-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