<PackageReference Include="OpenTelemetry" Version="1.20.0" />

OpenTelemetry.Internal.SelfDiagnosticsFileSink

Writes self-diagnostics entries to a rolling log file. This sink is purely the rolling-file concern - naming, preamble/header emission, size-based rollover, retention pruning, and failure recovery. Queueing and threading live in SelfDiagnosticsSinkDispatcher, which invokes Write and Flush from a single pump thread.

public void Dispose()

public void Flush()

public bool IsEnabled(LogLevel level)

public void OnInstalled()

public void Write(ref SelfDiagnosticsLogEntry entry, string formatted)