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: Instant
Time the log was recorded
level: Level
Severity level of the log
target: String
Target component/module of the log
message: String
Primary 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