Table of Contents

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 FileLoggerBuffer
optionsMonitor IOptionsMonitor<FileLoggerOptions>

Methods

LogAsync(LogMessage, CancellationToken)

protected override Task LogAsync(LogMessage logMessage, CancellationToken cancellationToken)

Parameters

logMessage LogMessage
cancellationToken CancellationToken

Returns

Task