horde_sdk.horde_logging¶
handler_config
module-attribute
¶
handler_config = [
{
"sink": sys.stdout,
"colorize": True,
"filter": is_stdout_log,
},
{
"sink": "logs/bridge.log",
"level": "DEBUG",
"colorize": False,
"retention": "2 days",
"rotation": "3 hours",
},
{
"sink": "logs/trace.log",
"level": "TRACE",
"colorize": False,
"filter": is_trace_log,
"retention": "3 days",
"rotation": "1 days",
"backtrace": True,
"diagnose": True,
},
]
PROGRESS_LOGGER_LABEL
module-attribute
¶
The label for request progress log messages. Less severity than INFO.
COMPLETE_LOGGER_LABEL
module-attribute
¶
The label for 'request complete' log messages. Less severity than INFO.
HORDE_SDK_LOG_VERBOSITY
module-attribute
¶
set_logger_handlers
module-attribute
¶
set_logger_verbosity ¶
Set the verbosity of the logger.
is_stdout_log ¶
is_msg_log ¶
is_stderr_log ¶
is_trace_log ¶
set_default_log_handlers ¶
Set the default log handlers if not already configured.