Edit

Share via


FileLogger Class

Definition

File logger, which logs messages to a file.

public class FileLogger : Microsoft.Extensions.Logging.ILogger
type FileLogger = class
    interface ILogger
Public Class FileLogger
Implements ILogger
Inheritance
FileLogger
Implements

Constructors

FileLogger(FileLoggingOutput, String)

Initializes a new instance of the FileLogger class.

Methods

BeginScope<TState>(TState)

Begins a logical operation scope.

IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Writes a log entry.

Applies to