Share via


GlobalLogBuffer Class

Definition

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

public ref class GlobalLogBuffer abstract : Microsoft::Extensions::Diagnostics::Buffering::LogBuffer
public abstract class GlobalLogBuffer : Microsoft.Extensions.Diagnostics.Buffering.LogBuffer
type GlobalLogBuffer = class
    inherit LogBuffer
Public MustInherit Class GlobalLogBuffer
Inherits LogBuffer
Inheritance
GlobalLogBuffer

Constructors

Name Description
GlobalLogBuffer()

Methods

Name Description
Flush()

Flushes the buffer and emits all buffered logs.

(Inherited from LogBuffer)
TryEnqueue<TState>(IBufferedLogger, LogEntry<TState>)

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

(Inherited from LogBuffer)

Applies to