pub struct LogEntry {
pub timestamp: u64,
pub level: LogLevel,
pub phase: Option<u8>,
pub message: String,
pub context: Option<String>,
pub duration_ms: Option<u64>,
}Expand description
Structured log entry with timestamp, level, and context
Fields§
§timestamp: u64Unix timestamp (milliseconds)
level: LogLevelLog severity level
phase: Option<u8>Associated phase number (1-10)
message: StringLog message
context: Option<String>Optional context (URL, parameter, etc.)
duration_ms: Option<u64>Elapsed time in milliseconds (for performance logs)
Implementations§
Source§impl LogEntry
impl LogEntry
Sourcepub fn with_phase(self, phase: u8) -> Self
pub fn with_phase(self, phase: u8) -> Self
Adds phase information to log entry
Sourcepub fn with_context(self, context: String) -> Self
pub fn with_context(self, context: String) -> Self
Adds context information to log entry
Sourcepub fn with_duration(self, duration_ms: u64) -> Self
pub fn with_duration(self, duration_ms: u64) -> Self
Adds performance timing to log entry
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 UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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