Table of Contents

Namespace SwiftCollections.Diagnostics

Classes

DiagnosticChannel

Represents a named diagnostic channel with a configurable sink and minimum level.

DiagnosticChannelLoggingExtensions

Provides interpolated diagnostic logging helpers for DiagnosticChannel.

DiagnosticLogger

Provides reusable logger state and diagnostic channels for libraries built on SwiftCollections diagnostics.

SwiftCollectionDiagnostics

Provides access to shared diagnostics for SwiftCollections.

SwiftThrowHelper

Provides allocation-conscious guard helpers for throwing common exceptions.

Structs

DiagnosticEvent

Represents a single diagnostic event emitted by a DiagnosticChannel.

DiagnosticInterpolatedStringHandler

Builds diagnostic messages for enabled diagnostic levels while allowing disabled levels to skip formatted interpolation expression evaluation.

DiagnosticMessageHandler<TLevel>

Builds interpolated diagnostic messages only when the requested diagnostic level is enabled.

DynamicDiagnosticLevel

Provides a placeholder level for dynamic-level interpolated logging.

ErrorDiagnosticLevel

Provides the error diagnostic level for fixed-level interpolated logging.

InfoDiagnosticLevel

Provides the info diagnostic level for fixed-level interpolated logging.

SwiftThrowInterpolatedStringHandler

Builds exception messages only when the guarded throw condition is true.

WarningDiagnosticLevel

Provides the warning diagnostic level for fixed-level interpolated logging.

Interfaces

IDiagnosticLevelProvider

Describes a fixed diagnostic level for an interpolated diagnostic message handler.

Enums

DiagnosticLevel

Defines the severity level for a diagnostic event.

Delegates

DiagnosticSink

Receives diagnostic events emitted by a DiagnosticChannel.