Expand description
Tetcore logging library.
This crate uses tokio’s tracing library for logging.
Structs§
- Event
Format - A pre-configured event formatter.
- Logger
Builder - A builder that is used to initialize the global logger.
- Prefix
Layer - A
Layer
that captures the prefix span (PREFIX_LOG_SPAN
) which is then used by [EventFormat
] to prefix the log lines by customizable string.
Enums§
- Error
- Logging errors.
Constants§
- PREFIX_
LOG_ SPAN - Span name used for the logging prefix. See macro
tc_tracing::logging::prefix_logs_with!
Functions§
- add_
directives - Add directives to current directives
- reload_
filter - Reload the logging filter with the supplied directives added to the existing directives
- reset_
log_ filter - Resets the log filter back to the original state when the node was started.
Type Aliases§
- Result
- Logging Result typedef.
Attribute Macros§
- prefix_
logs_ with - Add a log prefix to the function.