Function testing_logger::validate [−][src]
pub fn validate<F>(asserter: F) where
F: Fn(&Vec<CapturedLog>),
Used to validate any captured log events.
the asserter
closure can check the number, body, target and level
of captured log events. As a side effect, the records are cleared.