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