pub struct LogEvent {
pub timestamp: Instant,
pub level: Level,
pub target: String,
pub message: String,
pub fields: HashMap<String, String>,
pub span_id: Option<String>,
}Expand description
Structured log event
Fields§
§timestamp: InstantTime the log was recorded
level: LevelSeverity level of the log
target: StringTarget component/module of the log
message: StringPrimary message content
fields: HashMap<String, String>Arbitrary structured fields
span_id: Option<String>Optional span identifier for tracing correlation
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 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