pub struct LogRecord<'a> {
pub level: LogLevel,
pub message: Cow<'a, str>,
pub annotations: EffectHashMap<String, String>,
pub spans: Vec<String>,
}Expand description
One log event passed to each backend in a CompositeLogBackend.
Fields§
§level: LogLevelSeverity of this line.
message: Cow<'a, str>Human-readable message body.
annotations: EffectHashMap<String, String>Structured key/value fields merged into the formatted line or JSON row.
spans: Vec<String>Active span names from outermost to innermost (for nesting display).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LogRecord<'a>
impl<'a> RefUnwindSafe for LogRecord<'a>
impl<'a> Send for LogRecord<'a>
impl<'a> Sync for LogRecord<'a>
impl<'a> Unpin for LogRecord<'a>
impl<'a> UnsafeUnpin for LogRecord<'a>
impl<'a> UnwindSafe for LogRecord<'a>
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