Table of Contents

Class ConsoleLogger

Namespace
SunamoCl
Assembly
SunamoCl.dll

Provides static console logging with internationalization support. Does not inherit from LoggerBase — for that, use ConsoleLoggerCmd which was created to support CmdApp.SetLogger.

public class ConsoleLogger
Inheritance
ConsoleLogger
Inherited Members
Extension Methods

Constructors

ConsoleLogger()

Initializes a new instance of ConsoleLogger

public ConsoleLogger()

Properties

Instance

Gets the singleton instance of ConsoleLogger

public static ConsoleLogger Instance { get; set; }

Property Value

ConsoleLogger

InternationalizationFunction

Gets or sets the function used for internationalizing log messages

public static Func<string, string> InternationalizationFunction { get; set; }

Property Value

Func<string, string>

Methods

WriteMessage(TypeOfMessageCl, string, params string[])

Writes a typed message to the console with appropriate coloring

public static void WriteMessage(TypeOfMessageCl typeOfMessage, string text, params string[] args)

Parameters

typeOfMessage TypeOfMessageCl

Type of message determining the console color

text string

Message text to write

args string[]

Format arguments for the text