tracing/tracing-log/tests/reexport_log_crate.rs
Thomas Eizinger a1387482e9
log: Re-export the log crate from tracing-log (#602)
## Motivation

Resolves #552.

## Solution

Re-export the whole log crate.
2020-02-26 16:47:55 -08:00

10 lines
365 B
Rust

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