pub struct Record {
pub timestamp: DateTime,
pub level: LogLevel,
pub module: String,
pub message: String,
pub fields: HashMap<Value, Value>,
pub file: Option<String>,
pub line: Option<u32>,
pub thread_id: String,
}Expand description
Structured log record
Fields§
§timestamp: DateTimeTimestamp when the log was created
level: LogLevelLog severity level
module: StringSource module/crate (with reifydb- prefix stripped)
message: StringLog message
fields: HashMap<Value, Value>Structured fields (key-value pairs using ReifyDB Values)
file: Option<String>File location where log was generated
line: Option<u32>Line number where log was generated
thread_id: StringThread ID that generated the log
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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