pub struct Entry<E> {
pub content: EntryContent<E>,
pub timestamp: i64,
/* private fields */
}Expand description
Entry containing an Error of type E or an log message
Fields§
§content: EntryContent<E>Content of the entry
timestamp: i64Timestamp when the event occurred
Implementations§
source§impl<E> Entry<E>
impl<E> Entry<E>
sourcepub fn get_level(&self) -> LevelFilter
pub fn get_level(&self) -> LevelFilter
Get level
Returns LevelFilter::Error or the level of the Message
sourcepub fn new_message(level: LevelFilter, message: String) -> Self
pub fn new_message(level: LevelFilter, message: String) -> Self
Create Entry of type Error
source§impl<E: Debug + Display> Entry<E>
impl<E: Debug + Display> Entry<E>
sourcepub fn get_message(&self, mode: &FormatMode) -> String
pub fn get_message(&self, mode: &FormatMode) -> String
Get message as String
sourcepub fn get_message_filter(
&self,
mode: &FormatMode,
max_level: &LevelFilter
) -> Option<String>
pub fn get_message_filter( &self, mode: &FormatMode, max_level: &LevelFilter ) -> Option<String>
Get Message as String filtering based on given LevelFilter
Trait Implementations§
source§impl<E: Ord> Ord for Entry<E>
impl<E: Ord> Ord for Entry<E>
source§impl<E: PartialEq> PartialEq<Entry<E>> for Entry<E>
impl<E: PartialEq> PartialEq<Entry<E>> for Entry<E>
source§impl<E: PartialOrd> PartialOrd<Entry<E>> for Entry<E>
impl<E: PartialOrd> PartialOrd<Entry<E>> for Entry<E>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more