Function validate

Source
pub fn validate<F>(asserter: F)
where F: Fn(&Vec<CapturedLog>),
Expand description

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.