gazelle_api 0.14.0

Gazelle API Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rogue_logging::Verbosity::Trace;
use rogue_logging::{InitLog, LoggerBuilder};

/// Create a [`LoggerBuilder`] with standard exclude filters applied.
#[must_use]
pub fn default_logger() -> LoggerBuilder {
    LoggerBuilder::new()
        .with_exclude_filter("cookie".to_owned())
        .with_exclude_filter("reqwest".to_owned())
        .with_exclude_filter("rustls_platform_verifier".to_owned())
        .with_exclude_filter("serial_test".to_owned())
        .with_verbosity(Trace)
}

/// Initialize a logger with standard filters and [`Trace`] verbosity.
pub fn init_logger() {
    default_logger().create().init();
}