A Rust library to support testing of code that uses Log crate.
```rusttestinglogger#[macrouse] extern crate log; use log::Level; extern crate testinglogger;
fn testsomething() { testinglogger::setup(); warn!("Something went wrong with {}", 10); testinglogger::validate( |capturedlogs| { asserteq!(capturedlogs.len(), 1); asserteq!(capturedlogs[0].body, "Something went wrong with 10"); asserteq!(capturedlogs[0].level, Level::Warn); }); } ```