pub struct LogLine {
pub level: Level,
pub target: &'static str,
pub message: String,
pub fields: Vec<(&'static str, String)>,
pub span_fields: Vec<(&'static str, String)>,
}Expand description
One logged line, as values.
Fields§
§level: Level§target: &'static strThe target: — gunnar::ssh, gunnar::git, gunnar::audit, or the
module path when none was named.
message: StringThe format-string message; empty when the event had only fields.
fields: Vec<(&'static str, String)>The event’s own fields, in declaration order, values rendered with
Debug/Display the way fmt would (strings unquoted).
span_fields: Vec<(&'static str, String)>The fields of the spans this event sits in, outermost first. A field
recorded later via Span::record replaces the earlier value.
Implementations§
Trait Implementations§
impl Eq for LogLine
impl StructuralPartialEq for LogLine
Auto Trait Implementations§
impl Freeze for LogLine
impl RefUnwindSafe for LogLine
impl Send for LogLine
impl Sync for LogLine
impl Unpin for LogLine
impl UnsafeUnpin for LogLine
impl UnwindSafe for LogLine
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