pub struct LogEntry {
pub timestamp: DateTime<Utc>,
pub level: LogLevel,
pub message: String,
pub participant_id: String,
pub topic: Option<String>,
pub node_name: Option<String>,
pub file: Option<String>,
pub line: Option<u32>,
pub function: Option<String>,
}Expand description
A collected log entry.
Fields§
§timestamp: DateTime<Utc>Timestamp when log was generated.
level: LogLevelLog severity level.
message: StringLog message.
participant_id: StringParticipant GUID (hex string).
topic: Option<String>Topic name (if from DDS topic).
node_name: Option<String>Node name (for ROS 2 logs).
file: Option<String>Source file name.
line: Option<u32>Source line number.
function: Option<String>Source function name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEntry
impl<'de> Deserialize<'de> for LogEntry
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 LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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