logger ¤
Logging utilities.
Functions:
-
double_brackets–Double
{and}in log messages to prevent formatting errors. -
log_captured–Log captured text.
-
redirect_output_to_logging–Redirect standard output and error to logging.
-
run–Run a subprocess, log its standard output and error, return its output.
-
tail–Tail a log file.
double_brackets ¤
log_captured ¤
redirect_output_to_logging ¤
redirect_output_to_logging(
stdout_level: str = "info", stderr_level: str = "error"
) -> Iterator[None]
Redirect standard output and error to logging.
Yields:
-
None–Nothing.