Table of Contents

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

channel string

The channel that emitted the event.

level DiagnosticLevel

The severity level of the event.

message string

The event message.

source string

An optional source identifier.

Properties

Channel

Gets the channel that emitted the event.

public string Channel { get; }

Property Value

string

Level

Gets the severity level of the event.

public DiagnosticLevel Level { get; }

Property Value

DiagnosticLevel

Message

Gets the diagnostic message.

public string Message { get; }

Property Value

string

Source

Gets the optional source identifier.

public string Source { get; }

Property Value

string