pub struct LogEvent {Show 15 fields
pub version: SchemaVersion,
pub timestamp: Timestamp,
pub level: Level,
pub service: ServiceName,
pub target: TargetCategory,
pub action: ActionName,
pub message: Option<String>,
pub identity: ProcessIdentity,
pub trace: Option<TraceContext>,
pub request_id: Option<CorrelationId>,
pub correlation_id: Option<CorrelationId>,
pub outcome: Option<OutcomeLabel>,
pub diagnostic: Option<Diagnostic>,
pub state_transition: Option<StateTransition>,
pub fields: Map<String, Value>,
}Expand description
Structured log record emitted by the logging and routing layers.
Fields§
§version: SchemaVersionLog schema version.
timestamp: TimestampUTC event timestamp.
level: LevelEvent severity.
service: ServiceNameService that emitted the event.
target: TargetCategoryStable target/category label.
action: ActionNameStable action label.
message: Option<String>Optional human-readable message.
identity: ProcessIdentityProcess identity attached to the event.
trace: Option<TraceContext>Optional trace context for correlation.
request_id: Option<CorrelationId>Optional request identifier.
correlation_id: Option<CorrelationId>Optional correlation identifier.
outcome: Option<OutcomeLabel>Optional stable outcome label.
diagnostic: Option<Diagnostic>Optional structured diagnostic payload.
state_transition: Option<StateTransition>Optional state transition payload.
fields: Map<String, Value>Arbitrary structured event fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEvent
impl<'de> Deserialize<'de> for LogEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LogEvent
impl Serialize for LogEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
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