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§
Sourcefn base_entry(&self) -> &BaseLogEntry
fn base_entry(&self) -> &BaseLogEntry
获取基础日志条目
Sourcefn component_type(&self) -> &'static str
fn component_type(&self) -> &'static str
获取组件类型名称
Sourcefn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
获取事件类型名称