Class FileLogProvider
Log provider that writes output to a file.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class FileLogProvider : LogProvider
Constructors
FileLogProvider(String)
Initializes a new instance of the FileLogProvider.
Declaration
public FileLogProvider(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The file path. |
FileLogProvider(String, LogLevel)
Initializes a new instance of the FileLogProvider class.
Declaration
public FileLogProvider(string filePath, LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The file path. |
LogLevel | level | The log level. |
Properties
FilePath
Gets the file path.
Declaration
public string FilePath { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DoLog(LogEvent)
Logs a message at the specified log level.
Declaration
protected override void DoLog(LogEvent logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The log event details. |