Convenient env_logger for testing purpose.
Example
// In lib.rs:
#[cfg(test)]
dev_logger::init!();
// In test function:
tracing::info!(name = "message");
// Set RUST_LOG=info and run the test.
Convenient env_logger for testing purpose.
// In lib.rs:
#[cfg(test)]
dev_logger::init!();
// In test function:
tracing::info!(name = "message");
// Set RUST_LOG=info and run the test.