pub fn start_logging() {
    // ensure the global has been initialized
    LOG_SETUP.call_once(|| {
        // honor any existing RUST_LOG level
        if std::env::var("RUST_LOG").is_err() {
            std::env::set_var("RUST_LOG", "debug");
        }
        // Configure the logger to write to stderr and install it
        let output_stream = std::io::stderr;

        use tracing_subscriber::{prelude::*, EnvFilter};

        tracing_subscriber::registry()
            .with(EnvFilter::from_default_env())
            .with(tracing_subscriber::fmt::layer().with_writer(output_stream))
            .init();
    })
}
/// Enables debug logging regardless of the value of RUST_LOG
/// environment variable. If RUST_LOG isn't specifies, defaults to
/// "debug"
Enables debug logging regardless of the value of RUST_LOG
environment variable. If RUST_LOG isn't specifies, defaults to
"debug"
Enables debug logging regardless of the value of RUST_LOG environment variable . If RUST_LOG isn ' t specifies defaults to " debug "
pub fn start_logging() {
    // ensure the global has been initialized
    LOG_SETUP.call_once(|| {
        // honor any existing RUST_LOG level
        if std::env::var("RUST_LOG").is_err() {
            std::env::set_var("RUST_LOG", "debug");
        }
        // Configure the logger to write to stderr and install it
        let output_stream = std::io::stderr;
        use tracing_subscriber::{prelude::*, EnvFilter};
        tracing_subscriber::registry()
            .with(EnvFilter::from_default_env())
            .with(tracing_subscriber::fmt::layer().with_writer(output_stream))
            .init();
    })
}
pub fn start_logging ( ) { // ensure the global has been initialized LOG_SETUP . call_once ( | | { // honor any existing RUST_LOG level if std :: env :: var ( " " ) . is_err ( ) { std :: env :: set_var ( " " , " " ) ; } // Configure the logger to write to stderr and install it let output_stream = std :: io :: stderr ; use tracing_subscriber :: { prelude :: * , EnvFilter } ; tracing_subscriber :: registry ( ) . with ( EnvFilter :: from_default_env ( ) ) . with ( tracing_subscriber :: fmt :: layer ( ) . with_writer ( output_stream ) ) . init ( ) ; } ) }
Enables debug logging regardless of the value of RUST_LOG
environment variable.
Enables debug logging regardless of the value of RUST_LOG environment variable .