IBufferedLogger Interface

Definition

Represents the ability of a logging provider to support buffered logging.

public interface class IBufferedLogger
public interface IBufferedLogger
type IBufferedLogger = interface
Public Interface IBufferedLogger

Remarks

A logging provider implements the ILogger interface that gets invoked by the logging infrastructure whenever it’s time to log a piece of state.

A logging provider may also optionally implement the IBufferedLogger interface. The logging infrastructure may type-test the ILogger object to determine if it supports the IBufferedLogger interface. If it does, that indicates to the logging infrastructure that the logging provider supports buffering. Whenever log buffering is enabled, buffered log records may be delivered to the logging provider in a batch via LogRecords(IEnumerable<BufferedLogRecord>).

If a logging provider does not support log buffering, then it will always be given unbuffered log records. If a logging provider does support log buffering, whether its ILogger or IBufferedLogger implementation is used is determined by the log producer.

Methods

LogRecords(IEnumerable<BufferedLogRecord>)

Delivers a batch of buffered log records to a logging provider.

Applies to