Skip to main content

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

  • logging_level_to_str - turns an int logging level into its string representation

  • 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

  • log - outputs a logging message to a logger and a specified log file (independent of logger setup)

Changelog

0.0.8 (2026-07-23)

  • added log method for outputting message via logger and to a specific log file (independent of logger setup)

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

Metadata

Release files for wai-logging 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wai-logging 0.0.8
File Size Uploaded Provenance
wai_logging-0.0.8.tar.gz 6.4 kB Without provenance Details

Release files / wai_logging-0.0.8.tar.gz

Download URL wai_logging-0.0.8.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2292b9d152477aa89e5a07ad5447471ac4f8cca90ac6cf8731a6455e40bad30a
BLAKE2b-256 checksum
How to use checksums
49c2cd70fdfe6e4d0ed01bb7bff4e4daf073ae1433e8f107e18d1190408d7bc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for wai-logging 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page