Trait ExtendedLogEntry

Source
pub trait ExtendedLogEntry {
    // Required methods
    fn base_entry(&self) -> &BaseLogEntry;
    fn component_type(&self) -> &'static str;
    fn event_type(&self) -> &'static str;
}
Expand description

扩展的日志条目trait 允许各组件基于BaseLogEntry添加特定字段

Required Methods§

Source

fn base_entry(&self) -> &BaseLogEntry

获取基础日志条目

Source

fn component_type(&self) -> &'static str

获取组件类型名称

Source

fn event_type(&self) -> &'static str

获取事件类型名称

Implementors§