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
InternationalizationFunction
Gets or sets the function used for internationalizing log messages
public static Func<string, string> InternationalizationFunction { get; set; }
Property Value
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
typeOfMessageTypeOfMessageClType of message determining the console color
textstringMessage text to write
argsstring[]Format arguments for the text