GlobalLogBuffer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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) |