Expand description
Utility items shared between forc crates.
Re-exports§
pub use tracing_subscriber;
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.
- Level
Filter - A filter comparable to a verbosity
Level
. - Tracing
Subscriber Options
Enums§
Traits§
- Make
Writer - A type that can create
io::Write
instances. - Subscriber
Ext - Extension trait adding a
with(Layer)
combinator toSubscriber
s.
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 from default
tracing_subscriber::fmt::SubscriberBuilder
such that it would match directly usingprintln!
throughout the repo. - 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