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.7 (2026-07-16)

  • added level FATAL

  • added logging_level_to_str to turn int level into string representation

0.0.6 (2026-06-29)

  • add_logging_level method now allows specifying the default_level

0.0.5 (2025-08-25)

  • add_logging_level method now allows specifying the destination in the parsed namespace

  • add_logger_name method now allows specifying the destination in the parse namespace, and either short or long option flag can be specified

0.0.4 (2025-08-25)

  • add_logging_level method no longer requires short and long option flag to be specified together, one of them can be omitted (ie None)

0.0.3 (2025-01-14)

  • using underscore in project name now

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.7.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file wai_logging-0.0.7.tar.gz.

File metadata

  • Download URL: wai_logging-0.0.7.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wai_logging-0.0.7.tar.gz
Algorithm Hash digest
SHA256 598ad7f43225d7befd08a8cbcebc05de12476c62d3f0b13a9beb615ebc8bdc5e
MD5 f1c74621f6fbd9b531e4abfa3526a062
BLAKE2b-256 d1dffb7ffbe7e73b84e1f874177a024b18c1e6030a7af1b78fd9f681033c81b3

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