Function forest_filecoin::cli_shared::logger::get_env_filter
source ยท fn get_env_filter(def: EnvFilter) -> EnvFilter
Expand description
Returns an EnvFilter
according to the RUST_LOG
environment variable, or a default
Note that tracing_subscriber::filter::Builder
only allows a single default directive,
whereas we want to provide multiple.
See also https://github.com/tokio-rs/tracing/blob/27f688efb72316a26f3ec1f952c82626692c08ff/tracing-subscriber/src/filter/env/builder.rs#L189-L194