LogBuffer 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 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. |