Expand description
Utility items shared between forc crates.
Re-exports§
pub use tracing_subscriber;
Modules§
Structs§
- EnvFilter
- A
Layer
which filters spans and events based on a set of filter directives. - FmtSpan
- Configures what points in the span lifecycle are logged as events.
- Hide
Telemetry Filter - Filter to hide telemetry spans from regular application logs
- Level
Filter - A filter comparable to a verbosity
Level
. - Tracing
Subscriber Options
Enums§
Traits§
- Filter
Ext - Extension trait adding combinators for combining
Filter
. - Layer
- A composable handler for
tracing
events. - Layer
Trait - A composable handler for
tracing
events. - Make
Writer - A type that can create
io::Write
instances. - Subscriber
Ext - Extension trait adding a
with(Layer)
combinator toSubscriber
s. - Subscriber
Init Ext - Extension trait adding utility methods for subscriber initialization.
Functions§
- filter_
fn - Constructs a
FilterFn
, from a function or closure that returnstrue
if a span or event should be enabled, based on itsMetadata
. - init_
tracing_ subscriber - A subscriber built using tracing_subscriber::registry with optional telemetry layer.
- is_
telemetry_ disabled - Check if telemetry is disabled
- println_
action_ green - Prints an action message with a green-bold prefix like “ Compiling “.
- println_
action_ red - Prints an action message with a red-bold prefix like “ Removing “.
- println_
action_ yellow - Prints an action message with a yellow-bold prefix like “ Finished “.
- println_
error - Prints a warning message to stderr with the red prefix “error: “.
- println_
green - println_
green_ bold - println_
label_ green - Prints a label with a green-bold label prefix like “Compiling “.
- println_
label_ red - Prints a label with a red-bold label prefix like “error: “.
- println_
red - println_
red_ err - println_
warning - Prints a warning message to stdout with the yellow prefix “warning: “.
- println_
warning_ verbose - Prints a warning message to stdout with the yellow prefix “warning: “ only in verbose mode.
- println_
yellow - println_
yellow_ bold - println_
yellow_ err - registry
- Returns a default
Registry
.