API Reference
Build a simple logger
logging_std.build_logger(*, verbose=False, error_stream=None, info_stream=None)
cached
Build a logger that outputs to the standard output and error streams.
Messages of level INFO
go to the standard output stream.
Messages of level WARNING
and higher go to the standard error stream.
If verbose
is true, messages of level DEBUG
also go to the standard error stream.
The stream to send error messages to may be overridden by the error_stream
parameter,
and the one for informational messages - by the info_stream
one.
Source code in src/logging_std/__init__.py
logging_std.build_single_logger(*, verbose=False, stream=None)
cached
Build a logger that outputs to the standard error stream.
Messages of level INFO
and higher go to the standard error stream.
If verbose
is true, messages of level DEBUG
also go to the standard error stream.
The stream to send messages to may be overridden by the stream
parameter.