Class LogEvent
Encapsulates the log level, id and message.
Inherited Members
Namespace: Silverback.Diagnostics
Assembly: Silverback.Core.dll
Syntax
public class LogEvent
Constructors
| Improve this doc View sourceLogEvent(LogLevel, EventId, string)
Initializes a new instance of the LogEvent class.
Declaration
public LogEvent(LogLevel level, EventId eventId, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| LogLevel | level | The default LogLevel. |
| EventId | eventId | The EventId. |
| string | message | The logged message. |
Properties
| Improve this doc View sourceEventId
Gets the EventId.
Declaration
public EventId EventId { get; }
Property Value
| Type | Description |
|---|---|
| EventId |
Level
Gets the default LogLevel.
Declaration
public LogLevel Level { get; }
Property Value
| Type | Description |
|---|---|
| LogLevel |
Message
Gets the logged message.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |