Class LogEvent
Encapsulates the log level, id and message.
Inheritance
System.Object
LogEvent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
Microsoft.Extensions.Logging.LogLevel | level | The default Microsoft.Extensions.Logging.LogLevel. |
Microsoft.Extensions.Logging.EventId | eventId | The EventId. |
System.String | message | The logged message. |
Properties
| Improve this doc View sourceEventId
Gets the EventId.
Declaration
public EventId EventId { get; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Logging.EventId |
Level
Gets the default Microsoft.Extensions.Logging.LogLevel.
Declaration
public LogLevel Level { get; }
Property Value
Type | Description |
---|---|
Microsoft.Extensions.Logging.LogLevel |
Message
Gets the logged message.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |