pub struct LogRecord {
pub timestamp_ms: i64,
pub level: String,
pub target: String,
pub file: String,
pub line: u32,
pub message: String,
pub fields: Option<Value>,
}Expand description
One captured log record.
Fields§
§timestamp_ms: i64Wall-clock millisecond timestamp when the record was emitted.
level: StringSeverity level: TRACE / DEBUG / INFO / WARN / ERROR.
target: StringTracing target (typically crate_name::module).
file: StringSource file (best-effort, may be empty in release builds).
line: u32Source line number (0 when unavailable).
message: StringHuman-readable message extracted from the event’s message field.
fields: Option<Value>Additional structured fields serialised as JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogRecord
impl RefUnwindSafe for LogRecord
impl Send for LogRecord
impl Sync for LogRecord
impl Unpin for LogRecord
impl UnsafeUnpin for LogRecord
impl UnwindSafe for LogRecord
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