pub fn init_tracing(app_name: &str, dir: &str) -> (WorkerGuard, DefaultGuard) {
    let (g, sub) = init_file_subscriber(app_name, dir);

    let subs_guard = tracing::subscriber::set_default(sub);

    tracing::info!("initialized tracing");
    (g, subs_guard)
}
/// Creates a tracing/logging subscriber that is valid until the guards are dropped.
/// The format layer logging span/event in plain text, without color, one event per line.
/// This is useful in a unit test.
Creates a tracing/logging subscriber that is valid until the guards are dropped.
The format layer logging span/event in plain text, without color, one event per line.
This is useful in a unit test.
Creates a tracing / logging subscriber that is valid until the guards are dropped . The format layer logging span / event in plain text without color one event per line . This is useful in a unit test .
pub fn init_tracing(app_name: &str, dir: &str) -> (WorkerGuard, DefaultGuard) {
    let (g, sub) = init_file_subscriber(app_name, dir);
    let subs_guard = tracing::subscriber::set_default(sub);
    tracing::info!("initialized tracing");
    (g, subs_guard)
}
pub fn init_tracing ( app_name : & str , dir : & str ) -> ( WorkerGuard , DefaultGuard ) { let ( g , sub ) = init_file_subscriber ( app_name , dir ) ; let subs_guard = tracing :: subscriber :: set_default ( sub ) ; tracing :: info ! ( " " ) ; ( g , subs_guard ) }
Creates a tracing/logging subscriber that is valid until the guards are dropped.
Creates a tracing / logging subscriber that is valid until the guards are dropped .
app_name
&str
dir
&str
app_name
&str
dir
&str