pub struct LogMessage {
pub message: String,
pub file: Option<&'static str>,
pub line: Option<u32>,
pub time: SystemTime,
pub level: LogLevel,
pub show_time: bool,
}Expand description
A log message with metadata.
Fields§
§message: StringThe message content
file: Option<&'static str>File where the log was called
line: Option<u32>Line number
time: SystemTimeTimestamp
level: LogLevelLog level
show_time: boolWhether to show the timestamp
Implementations§
Source§impl LogMessage
impl LogMessage
Trait Implementations§
Source§impl Debug for LogMessage
impl Debug for LogMessage
Source§impl Renderable for LogMessage
impl Renderable for LogMessage
Auto Trait Implementations§
impl Freeze for LogMessage
impl RefUnwindSafe for LogMessage
impl Send for LogMessage
impl Sync for LogMessage
impl Unpin for LogMessage
impl UnwindSafe for LogMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Measurable for Twhere
T: Renderable,
impl<T> Measurable for Twhere
T: Renderable,
Source§fn measure(&self, width: usize) -> Measurement
fn measure(&self, width: usize) -> Measurement
Measure this renderable at the given width.