Struct DiagnosticEvent
- Namespace
- SwiftCollections.Diagnostics
- Assembly
- SwiftCollections.dll
Represents a single diagnostic event emitted by a DiagnosticChannel.
public readonly struct DiagnosticEvent
- Inherited Members
Constructors
DiagnosticEvent(string, DiagnosticLevel, string, string)
Initializes a new instance of the DiagnosticEvent struct.
public DiagnosticEvent(string channel, DiagnosticLevel level, string message, string source = "")
Parameters
channelstringThe channel that emitted the event.
levelDiagnosticLevelThe severity level of the event.
messagestringThe event message.
sourcestringAn optional source identifier.
Properties
Channel
Gets the channel that emitted the event.
public string Channel { get; }
Property Value
Level
Gets the severity level of the event.
public DiagnosticLevel Level { get; }
Property Value
Message
Gets the diagnostic message.
public string Message { get; }
Property Value
Source
Gets the optional source identifier.
public string Source { get; }