Class BatchingLoggerProvider
- Namespace
- JJMasterData.Commons.Logging
- Assembly
- JJMasterData.Commons.dll
A provider of JJMasterData.Commons.Logging.BatchingLogger instances.
public abstract class BatchingLoggerProvider : ILoggerProvider, IDisposable, ISupportExternalScope
- Inheritance
-
BatchingLoggerProvider
- Implements
- Derived
- Inherited Members
Properties
IsEnabled
Checks if the queue is enabled.
public bool IsEnabled { get; }
Property Value
Methods
CreateLogger(string)
Creates a JJMasterData.Commons.Logging.BatchingLogger with the given categoryName
.
public ILogger CreateLogger(string categoryName)
Parameters
categoryName
stringThe name of the category to create this logger with.
Returns
- ILogger
The JJMasterData.Commons.Logging.BatchingLogger that was created.
Dispose()
public void Dispose()
WriteMessagesAsync(List<LogMessage>, CancellationToken)
protected abstract Task WriteMessagesAsync(List<LogMessage> messages, CancellationToken cancellationToken)
Parameters
messages
List<LogMessage>cancellationToken
CancellationToken