aboutsummaryrefslogtreecommitdiff
path: root/examples/loginfo.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-08-17 14:52:11 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-08-17 14:52:11 +0200
commit0585e43fa82a359e768815394b493801773feb0c (patch)
treea7b638e4040079668305264120efc82a58b4bce1 /examples/loginfo.rs
parentcb4ade7710f6fa171130edeeabfa2db2fb1c526b (diff)
downloadevtclib-0585e43fa82a359e768815394b493801773feb0c.tar.gz
evtclib-0585e43fa82a359e768815394b493801773feb0c.tar.bz2
evtclib-0585e43fa82a359e768815394b493801773feb0c.zip
add Log::errors convenience method
Diffstat (limited to 'examples/loginfo.rs')
-rw-r--r--examples/loginfo.rs4
1 files changed, 4 insertions, 0 deletions
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);
+ }
}