Enhanced C#
Language of your choice: library documentation
|
Sends all messages to System.Console.WriteLine(), with hard-coded colors for Error, Warning, Note, Verbose, and Detail. More...
Sends all messages to System.Console.WriteLine(), with hard-coded colors for Error, Warning, Note, Verbose, and Detail.
Public static fields | |
static readonly ConsoleMessageSink | Value = new ConsoleMessageSink() |
Properties | |
Severity | PrintSeverityAt [get, set] |
Minimum severity level at which the severity level is printed. For example, if set to Severity.Error, then the prefix "Error:" is printed for errors but the prefix "Warning:" is not printed for warnings. More... | |
Public Member Functions | |
void | Write (Severity level, object context, string format) |
void | Write (Severity level, object context, string format, object arg0, object arg1=null) |
void | Write (Severity level, object context, string format, params object[] args) |
bool | IsEnabled (Severity level) |
Always returns true. More... | |
Public Member Functions inherited from Loyc.IMessageSink< in in TContext > | |
void | Write (Severity level, TContext context, [Localizable] string format) |
Writes a message to the target that this object represents. More... | |
void | Write (Severity level, TContext context, [Localizable] string format, object arg0, object arg1=null) |
void | Write (Severity level, TContext context, [Localizable] string format, params object[] args) |
Static Public Member Functions | |
static void | WriteColoredMessage (ConsoleColor color, object context, string text) |
Protected Member Functions | |
virtual ConsoleColor | PickColor (Severity level, out string levelText) |
Protected static fields | |
static ConsoleColor | _lastColor |
|
inline |
Always returns true.
Implements Loyc.IMessageSink< in in TContext >.
|
getset |
Minimum severity level at which the severity level is printed. For example, if set to Severity.Error, then the prefix "Error:" is printed for errors but the prefix "Warning:" is not printed for warnings.
Initial value: Severity.Warning