fn hier_logs(filter: EnvFilter) {
    let use_colors = atty::is(atty::Stream::Stdout);
    let subscriber = Registry::default().with(filter);
    let subscriber = subscriber.with(
        HierarchicalLayer::default()
            .with_writer(std::io::stdout)
            .with_indent_lines(true)
            .with_ansi(use_colors)
            .with_targets(true)
            .with_verbose_exit(true)
            .with_indent_amount(2),
    );
    tracing::subscriber::set_global_default(subscriber).unwrap();
}
/// Configure global logger to use a hierarchical view.
Configure global logger to use a hierarchical view.
Configure global logger to use a hierarchical view .
fn hier_logs(filter: EnvFilter) {
    let use_colors = atty::is(atty::Stream::Stdout);
    let subscriber = Registry::default().with(filter);
    let subscriber = subscriber.with(
        HierarchicalLayer::default()
            .with_writer(std::io::stdout)
            .with_indent_lines(true)
            .with_ansi(use_colors)
            .with_targets(true)
            .with_verbose_exit(true)
            .with_indent_amount(2),
    );
    tracing::subscriber::set_global_default(subscriber).unwrap();
}
fn hier_logs ( filter : EnvFilter ) { let use_colors = atty :: is ( atty :: Stream :: Stdout ) ; let subscriber = Registry :: default ( ) . with ( filter ) ; let subscriber = subscriber . with ( HierarchicalLayer :: default ( ) . with_writer ( std :: io :: stdout ) . with_indent_lines ( true ) . with_ansi ( use_colors ) . with_targets ( true ) . with_verbose_exit ( true ) . with_indent_amount ( 2 ) , ) ; tracing :: subscriber :: set_global_default ( subscriber ) . unwrap ( ) ; }
Configure global logger to use a hierarchical view.
Configure global logger to use a hierarchical view .
filter
EnvFilter