Module logger

Module logger 

Source
Expand description

Setup for logging for the service.

Enumsยง

LogLevel ๐Ÿ”’
All valid logging levels

Constantsยง

LOG_LEVEL_DEFAULT ๐Ÿ”’
Default log level

Staticsยง

GLOBAL_SPAN ๐Ÿ”’
Default Span Guard for the Service.
LOGGER_HANDLE ๐Ÿ”’
Logger Handle for the Service.
SPAN_GUARD ๐Ÿ”’
Default Span Guard for the Service.

Functionsยง

build_fmt_layer ๐Ÿ”’
Initialize the tracing subscriber
build_reloadable_filter ๐Ÿ”’
Create a reloadable layer with the specified log_level.
init ๐Ÿ”’
Initialize the tracing subscriber
modify_logger_level ๐Ÿ”’
Modify the logger level setting. This will reload the logger.
post_init ๐Ÿ”’
Initialize the tracing subscriber
set_default_span ๐Ÿ”’
Set the default fields in a log, using a global span.

Type Aliasesยง

LoggerHandle ๐Ÿ”’
Handle to our Logger