Class ConsoleLogProvider
Log provider that writes output to the console/terminal.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ConsoleLogProvider : LogProvider
Constructors
ConsoleLogProvider()
Initializes a new instance of the ConsoleLogProvider.
Declaration
public ConsoleLogProvider()
ConsoleLogProvider(LogLevel)
Initializes a new instance of the ConsoleLogProvider class.
Declaration
public ConsoleLogProvider(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The log level. |
Properties
Colorize
Gets or sets whether the output should be colorized.
Declaration
public bool Colorize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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. |