Skip to main content

Module logging

Module logging 

Source

Structsยง

Config
Logging configuration.

Enumsยง

BacktraceLoggingMode ๐Ÿ”’
Controls how backtraces are logged on panic.
Stream
Which standard stream the fmt layer writes to.

Functionsยง

fmt_layer ๐Ÿ”’
initialize_logging
Initializes logging on stdout.
initialize_logging_on_stderr
Initializes logging on stderr.
initialize_logging_with
Initializes logging with an optional extra Layer (e.g. an OTel bridge).
parse_span_filter ๐Ÿ”’

Type Aliasesยง

ErasedFmtLayer
A type-erased fmt layer attached over a Registry. The OTel bridge layer wraps a subscriber of type Layered<ErasedFmtLayer, Registry>.
FmtSubscriber
Composed subscriber type after the fmt layer is applied. Callers building an OTel layer for initialize_logging_with should target this subscriber.