Module sc_tracing::logging
source · Expand description
Substrate logging library.
This crate uses tokio’s tracing library for logging.
Structs§
- A pre-configured event formatter.
- A structure which, when
Display
d, will print out the current local time. - A builder that is used to initialize the global logger.
- A
Layer
that captures the prefix span (PREFIX_LOG_SPAN
) which is then used bycrate::logging::EventFormat
to prefix the log lines by customizable string.
Enums§
- Logging errors.
Constants§
- Span name used for the logging prefix. See macro
sc_tracing::logging::prefix_logs_with!
Functions§
- Add directives to current directives.
- Returns the current directives.
- Reload the logging filter with the supplied directives added to the existing directives
- Resets the log filter back to the original state when the node was started.
Type Aliases§
- Logging Result typedef.
Attribute Macros§
- Add a log prefix to the function.