LogEvent
The LogEvent class is a representation of a single log entry. It encapsulates all the information related to a specific logging event, including the message, severity, timestamp, and any associated context.
Properties
| Property | Description |
|---|---|
| Level | Severity level of the log event. |
| Code | Stable, application-specific code that identifies the type of event. |
| Context | Caller-supplied context information associated with the event. |
| Ex | Exception associated with the event, if any. |
| Message | Message template for the event. |
| Args | Arguments used to format or enrich the message template. |
See Also
- ILogger — Primary logging interface that consumes LogEvent instances.
- ILogContext — Interface for providing contextual information attached to log events.
- Logging Basics — Overview of structured logging and how log events are produced.