Table of Contents

Namespace Chronicler.Diagnostics

Independent diagnostic channels, lazy logging, and exception guards. The Chronicler.Diagnostics package has no Core, serialization, or engine dependency. See Diagnostics and guards for host integration.

Classes

ChronicleGuard

Provides allocation-conscious guard helpers for throwing common exceptions.

DiagnosticChannel

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

DiagnosticChannelLoggingExtensions

Provides string and interpolated diagnostic logging helpers for DiagnosticChannel.

DiagnosticLogger

Provides reusable logger state and diagnostic channels for libraries using Chronicler diagnostics.

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.

ThrowInterpolatedStringHandler

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.