pub struct LogEntry {
pub timestamp: u64,
pub severity: Severity,
pub text: String,
pub category: Option<String>,
pub class_name: Option<String>,
pub method_name: Option<String>,
pub thread_id: Option<String>,
}
Expand description
LogEntry, usually created with the [log!
] macro.
Fields§
§timestamp: u64
Current timestamp, milliseconds since epoch in UTC
severity: Severity
Severity of this entry
text: String
Text value of this entry. When created with the log! macro, this field contains json-encoded key-value pairs, sorted by key
category: Option<String>
Optional category string (application-defined)
class_name: Option<String>
Optional class_name (application-defined)
method_name: Option<String>
Optional method_name (application-defined)
thread_id: Option<String>
Optional thread_id (not used for wasm)
Trait 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 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