1 | use tracing_log::{log::LevelFilter, LogTracer}; |
---|---|
2 | |
3 | /// This test makes sure we can access `log::LevelFilter` through the `tracing_log` crate and don't |
4 | /// have to depend on `log` separately. |
5 | /// |
6 | /// See https://github.com/tokio-rs/tracing/issues/552. |
7 | #[test] |
8 | fn can_initialize_log_tracer_with_level() { |
9 | LogTracer::init_with_filter(LevelFilter::Error).unwrap(); |
10 | } |
11 |