pub struct LogEntry {
pub timestamp: String,
pub level: String,
pub message: String,
pub target: String,
pub thread_id: Option<String>,
pub file: Option<String>,
pub line: Option<u32>,
pub fields: Value,
}Expand description
Structured log entry for JSON output
Fields§
§timestamp: String§level: String§message: String§target: String§thread_id: Option<String>§file: Option<String>§line: Option<u32>§fields: ValueTrait Implementations§
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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