Class BatchingLoggerOptions
- Namespace
- JJMasterData.Commons.Logging
- Assembly
- JJMasterData.Commons.dll
Options for a logger which batches up log messages.
public class BatchingLoggerOptions
- Inheritance
-
BatchingLoggerOptions
- Derived
- Inherited Members
Properties
BackgroundQueueSize
Gets or sets the maximum size of the background log message queue or null for no limit.
After maximum queue size is reached log event sink would start blocking.
Defaults to 1000
.
public int? BackgroundQueueSize { get; set; }
Property Value
- int?
BatchSize
Gets or sets a maximum number of events to include in a single batch or null for no limit.
public int? BatchSize { get; set; }
Property Value
- int?
FlushPeriod
Gets or sets the period after which logs will be flushed to the store.
public TimeSpan FlushPeriod { get; set; }
Property Value
IncludeScopes
Gets or sets a value indicating whether scopes should be included in the message.
Defaults to false
.
public bool IncludeScopes { get; set; }
Property Value
IsEnabled
Gets or sets value indicating if logger accepts and queues writes.
public bool IsEnabled { get; set; }