Class JsonConsoleLogProvider
A log provider that sends json logs to the console.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class JsonConsoleLogProvider : ConsoleLogProvider
Constructors
JsonConsoleLogProvider()
Creates a new instance of a JsonConsole log provider.
Declaration
public JsonConsoleLogProvider()
JsonConsoleLogProvider(LogLevel)
Creates a new instance of a JsonConsole log provider.
Declaration
public JsonConsoleLogProvider(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The initial log level. |
Methods
GenerateLogLine(LogEvent)
Builds the json string for the console logger to log.
Declaration
protected override string GenerateLogLine(LogEvent logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The log event details. |
Returns
Type | Description |
---|---|
System.String |