pub struct SinkRecord<'a> {
pub timestamp: &'a str,
pub level: Level,
pub target: &'a str,
pub message: &'a str,
pub prefix: &'a str,
}Expand description
Single log record handed to a Sink. Borrows from the active
log::Record and the SDK’s per-record context — do not retain
references past the emit call.
Fields§
§timestamp: &'a strFormatted timestamp (YYYY-MM-DD HH:MM:SS) of the record.
level: LevelLog level of the record (ERROR, WARN, INFO, DEBUG, TRACE).
target: &'a strLog target reported by the log::Record (the originating
module path by default).
message: &'a strFormatted message body.
prefix: &'a strPlugin prefix ([crate-name] by default).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SinkRecord<'a>
impl<'a> RefUnwindSafe for SinkRecord<'a>
impl<'a> Send for SinkRecord<'a>
impl<'a> Sync for SinkRecord<'a>
impl<'a> Unpin for SinkRecord<'a>
impl<'a> UnsafeUnpin for SinkRecord<'a>
impl<'a> UnwindSafe for SinkRecord<'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