pub fn start_logging() {
    use tracing_log::LogTracer;
    use tracing_subscriber::{filter::EnvFilter, FmtSubscriber};

    // 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");
        }

        LogTracer::init().expect("Cannot init log->trace integration");

        let subscriber = FmtSubscriber::builder()
            .with_env_filter(EnvFilter::from_default_env())
            .with_test_writer()
            .finish();

        observability_deps::tracing::subscriber::set_global_default(subscriber)
            .expect("setting default subscriber failed");
    })
}
/// 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() {
    use tracing_log::LogTracer;
    use tracing_subscriber::{filter::EnvFilter, FmtSubscriber};
    // 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");
        }
        LogTracer::init().expect("Cannot init log->trace integration");
        let subscriber = FmtSubscriber::builder()
            .with_env_filter(EnvFilter::from_default_env())
            .with_test_writer()
            .finish();
        observability_deps::tracing::subscriber::set_global_default(subscriber)
            .expect("setting default subscriber failed");
    })
}
pub fn start_logging ( ) { use tracing_log :: LogTracer ; use tracing_subscriber :: { filter :: EnvFilter , FmtSubscriber } ; // 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 ( " " , " " ) ; } LogTracer :: init ( ) . expect ( " " ) ; let subscriber = FmtSubscriber :: builder ( ) . with_env_filter ( EnvFilter :: from_default_env ( ) ) . with_test_writer ( ) . finish ( ) ; observability_deps :: tracing :: subscriber :: set_global_default ( subscriber ) . expect ( " " ) ; } ) }
Enables debug logging regardless of the value of RUST_LOG
environment variable.
Enables debug logging regardless of the value of RUST_LOG environment variable .