pub struct Message {
pub location: Location,
pub level: String,
pub timestamp: DateTime<Utc>,
pub message: String,
pub kv: JsonMap,
}
Expand description
A Message
captures the all information about a single log message.
Fields§
§location: Location
The information about the Location
of a message in the source.
level: String
The logging level, see slog::Level
.
timestamp: DateTime<Utc>
The timestamp at which the message was issued.
As there may be latencies between a message’s emission and consumption in DTrace, this can be useful.
message: String
The string message emitted in the log entry.
kv: JsonMap
The key-value pairs in this log message, including those of parent loggers.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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