Skip to main content

Python library with helper methods for logging.

Project description

Python library with helper methods for logging.

  • init_logging - initializes the logging with a default level, which can be overridden with an environment variable

  • set_logging_level - sets the logging level of a logging.Logger instance

  • str_to_logging_level - turns a string logging level into a logging module one, used by init_logging and set_logging_level

  • add_logging_level - adds an option for the logging level to an argparse.ArgumentParser instance

  • add_logger_name - adds an option for a custom name for a logger to an argparse.ArgumentParser instance

Changelog

0.0.2 (2025-01-14)

  • init_logging now supports specifying stream or filename or handlers as well as the log_format

0.0.1 (2023-11-30)

  • initial release

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

wai.logging-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file wai.logging-0.0.2.tar.gz.

File metadata

  • Download URL: wai.logging-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.20

File hashes

Hashes for wai.logging-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b9e4fd19398f772220fca2e4cfa8251e458edcb9d69633505ccea43efc127ead
MD5 4449d38b5639c7647388deebf78cf91e
BLAKE2b-256 edf45948a527c9ca76df886fc4831bd2b4dbf649493ead923339c467f9db9db8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page