From 0585e43fa82a359e768815394b493801773feb0c Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 17 Aug 2020 14:52:11 +0200 Subject: add Log::errors convenience method --- examples/loginfo.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') diff --git a/examples/loginfo.rs b/examples/loginfo.rs index 927ff52..978fede 100644 --- a/examples/loginfo.rs +++ b/examples/loginfo.rs @@ -36,4 +36,8 @@ fn main() { } println!("Number of recorded events: {}", log.events().len()); + + for error in log.errors() { + println!("Error in log: {}", error); + } } -- cgit v1.2.3