tracing_logger 0.1.0

my logger
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub fn init_logger() {
    tracing_subscriber::FmtSubscriber::builder()
        .with_env_filter(
            tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| {
                tracing_subscriber::EnvFilter::new(tracing::Level::DEBUG.to_string())
            }),
        )
        .with_target(true)
        .with_thread_ids(true)
        .with_file(true)
        .with_line_number(true)
        .with_ansi(true)
        .with_level(true)
        .with_thread_names(true)
        .pretty()
        .init();
}