Skip to content

FileLoggerProvider Methods

Microsoft.Extensions.Logging.ILoggerProvider which outputs to a log file.

CreateLogger(string)

View source
public ILogger CreateLogger(string categoryName)
Creates a new Microsoft.Extensions.Logging.ILogger instance.

Parameters

categoryNamestring
The category name for messages produced by the logger.

Returns

The instance of Microsoft.Extensions.Logging.ILogger that was created.

Dispose

View source
public void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.