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.dev2.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.dev2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reconplogger-5.0.0.dev2.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.dev2.tar.gz
Algorithm Hash digest
SHA256 433d44bb71c17983c5b6fa9a2e84a0c21bb24e35867e7d2ad0808994957f737e
MD5 c32557a6ddc9ef05b37720f9746688b0
BLAKE2b-256 124dac3ed22d9389f946307d22b7ab59404fd369b4922d58862c38ec78af938a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for reconplogger-5.0.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b3d9d0ac9072d5158da04ef9b1ba4ee9eaa187c6b44709ef6a97e76d4a1c116
MD5 7c255f48670ca4a07b88b05d69465467
BLAKE2b-256 392523dbb728c297d63f87569eaa742d8dbe5e2681ca2fc1cbc62b217a8c2ca6

See more details on using hashes here.

Provenance

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