pub trait LogSource {
// Required methods
fn len(&self) -> usize;
fn time(&self, index: usize) -> f64;
fn entity(&self, index: usize) -> &str;
fn level(&self, index: usize) -> Level;
fn body(&self, index: usize) -> &str;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
The entries a text log shows, in time order (an entry is never before the one ahead of it); the application owns them. Entries are named by their index, which stays theirs as the log grows at its end.