Class FileLoggerBackgroundService
- Namespace
- JJMasterData.Commons.Logging.File
- Assembly
- JJMasterData.Commons.dll
public class FileLoggerBackgroundService : LoggerBackgroundService<FileLoggerBuffer>, IHostedService, IDisposable
- Inheritance
-
FileLoggerBackgroundService
- Implements
- Inherited Members
Constructors
FileLoggerBackgroundService(FileLoggerBuffer, IOptionsMonitor<FileLoggerOptions>)
public FileLoggerBackgroundService(FileLoggerBuffer loggerBuffer, IOptionsMonitor<FileLoggerOptions> optionsMonitor)
Parameters
loggerBuffer
FileLoggerBufferoptionsMonitor
IOptionsMonitor<FileLoggerOptions>
Methods
LogAsync(LogMessage, CancellationToken)
protected override Task LogAsync(LogMessage logMessage, CancellationToken cancellationToken)
Parameters
logMessage
LogMessagecancellationToken
CancellationToken