pub struct LogEvent {
pub level: LogLevel,
pub level_num: u8,
pub log: Log,
pub caller: Option<&'static Location<'static>>,
}Expand description
A structured log event passed through the ring buffer.
The caller pays only for a Log move (~128-byte memcpy).
Serialization happens on the flusher thread.
Fields§
§level: LogLevelSeverity level of this event.
level_num: u8Numeric severity for fast level-gating comparisons.
log: LogStructured log data. Formatted on the flusher thread, not here.
caller: Option<&'static Location<'static>>Call site captured by Log::fire. The
flusher adds it to log as the caller attribute before
formatting, so the caller’s thread never builds that string.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
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