Skip to main content

Module helpers

Module helpers 

Source
Expand description

Contains helper functions for the crate

Enums§

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.