Module tc_tracing::logging[][src]

Tetcore logging library.

This crate uses tokio’s tracing library for logging.

Structs

EventFormat

A pre-configured event formatter.

LoggerBuilder

A builder that is used to initialize the global logger.

PrefixLayer

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 Definitions

Result

Logging Result typedef.

Attribute Macros

prefix_logs_with

Add a log prefix to the function.