actio_python_utils.logging_functions

Logging-related functionality.

Functions

log(level)

Used as a context manager to log at the specified level temporarily and return to the previous level after exiting

setup_logging([logging_level, name, stream, ...])

Set up the logger given by name, attach a stream handler, set the format, and log levels as specified.

Classes

LazyLogger(name[, level])

Wraps a logging.Logger to accept either a message or a function to evaluate to produce the desired message.