Class LogEventLogProvider
Simple log provider that writes log events to a local array.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class LogEventLogProvider : LogProvider
Constructors
LogEventLogProvider()
Initializes a new instance of the LogEventLogProvider.
Declaration
public LogEventLogProvider()
LogEventLogProvider(LogLevel)
Initializes a new instance of the LogEventLogProvider class.
Declaration
public LogEventLogProvider(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The log level. |
Properties
Events
Gets the logged events.
Declaration
public LogEvent[] Events { get; }
Property Value
Type | Description |
---|---|
LogEvent[] |
Methods
Clear()
Clears all text from the log and returns the former contents.
Declaration
public LogEvent[] Clear()
Returns
Type | Description |
---|---|
LogEvent[] |
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. |