Skip to main content

Class ConsoleLogProvider

A Log Provider that outputs to the System Console

Assembly: Meadow.Logging.dll
View Source
Declaration
public class ConsoleLogProvider : ILogProvider

Implements:
Meadow.Logging.ILogProvider

Properties

ShowLogLevel

When true, the current log level will be prefixed to all logged messages

View Source
Declaration
public bool ShowLogLevel { get; set; }

ShowMessageGroup

When true, the current message group will be prefixed to all logged messages

View Source
Declaration
public bool ShowMessageGroup { get; set; }

Methods

Log(LogLevel, string, string?)

Called when the associated Logger has a message call

View Source
Declaration
public void Log(LogLevel level, string message, string? messageGroup)
Parameters
TypeNameDescription
Meadow.Logging.LogLevellevelThe LogLevel for the message
System.StringmessageThe message to log
System.StringmessageGroupThe (optional) log message groupd

Implements