pub fn init_global_tracing(app_name: &str, dir: &str) -> WorkerGuard {
    let (g, sub) = init_file_subscriber(app_name, dir);
    tracing::subscriber::set_global_default(sub).expect("error setting global tracing subscriber");

    tracing::info!("initialized global tracing");
    g
}
/// Creates a global tracing/logging subscriber which saves events in one log file.
Creates a global tracing/logging subscriber which saves events in one log file.
Creates a global tracing / logging subscriber which saves events in one log file .
pub fn init_global_tracing(app_name: &str, dir: &str) -> WorkerGuard {
    let (g, sub) = init_file_subscriber(app_name, dir);
    tracing::subscriber::set_global_default(sub).expect("error setting global tracing subscriber");
    tracing::info!("initialized global tracing");
    g
}
pub fn init_global_tracing ( app_name : & str , dir : & str ) -> WorkerGuard { let ( g , sub ) = init_file_subscriber ( app_name , dir ) ; tracing :: subscriber :: set_global_default ( sub ) . expect ( " " ) ; tracing :: info ! ( " " ) ; g }
Creates a global tracing/logging subscriber which saves events in one log file.
Creates a global tracing / logging subscriber which saves events in one log file .
app_name
&str
dir
&str
app_name
&str
dir
&str