LogBuffer Class

Definition

Buffers logs into circular buffers and drops them after some time if not flushed.

public ref class LogBuffer abstract
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public abstract class LogBuffer
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type LogBuffer = class
Public MustInherit Class LogBuffer
Inheritance
LogBuffer
Derived
Attributes

Constructors

LogBuffer()

Methods

Flush()

Flushes the buffer and emits all buffered logs.

TryEnqueue<TState>(IBufferedLogger, LogEntry<TState>)

Enqueues a log record in the underlying buffer, if available.

Applies to