Crate forc_tracing

Source
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.
LevelFilter
A filter comparable to a verbosity Level.
StdioTracingWriter
TracingSubscriberOptions

Enums§

TracingWriterMode

Traits§

MakeWriter
A type that can create io::Write instances.

Functions§

init_tracing_subscriber
A subscriber built from default tracing_subscriber::fmt::SubscriberBuilder such that it would match directly using println! 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_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