summaryrefslogtreecommitdiffstats
path: root/third_party/rust/android_logger/tests/config_log_level.rs
blob: 864b229f9c0aa74e3a3735f549981531e8a374b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
extern crate android_logger;
extern crate log;

#[test]
fn config_log_level() {
    android_logger::init_once(
        android_logger::Config::default().with_max_level(log::LevelFilter::Trace),
    );

    assert_eq!(log::max_level(), log::LevelFilter::Trace);
}