Python library with helper methods for logging.
init_logging - initializes the logging with a default level, which can be overridden with an environment variable, logging format and filename to log the output to can be specified as well (and overridden with environment variables)
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.9 (2026-11-11)
added the log_format_env_var parameter to init_logging that allows overriding the logging format via this environment variable, to make it easy to change the format a runtime, e.g., for temporary debugging
added the filename_env_var parameter to init_logging for overriding the filename to redirect the logging output to, e.g., for temporary turning on debugging output
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.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wai_logging-0.0.9.tar.gz | 7.3 kB | Without provenance | Details for wai_logging-0.0.9.tar.gz |
Release files / wai_logging-0.0.9.tar.gz
| Download URL | wai_logging-0.0.9.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
627f48bc07fce394f4e2d31fc85fa16f5a80c2c74a0310971b8bfe5a1a4ac2a1
|
|
BLAKE2b-256 checksum How to use checksums |
71ffd9dfcc265b4c4096db337f00853706a8d010284e4cb88b33900a1a54af66
|
| 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.9
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.