referrerpolicy=no-referrer-when-downgrade
sc_tracing

Module logging

Source
Expand description

Substrate logging library.

This crate uses tokio’s tracing library for logging.

Structs§

Enums§

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§

Attribute Macros§

  • This prefixes all the log lines with [<name>] (after the timestamp). It works by making a tracing’s span that is propagated to all the child calls and child tasks (futures) if they are spawned properly with the SpawnHandle (see TaskManager in sc-cli) or if the futures use .in_current_span() (see tracing-futures).