C# Class Loyc.ConsoleMessageSink

Sends all messages to System.Console.WriteLine(), with hard-coded colors for Error, Warning, Note, Verbose, and Detail.
Inheritance: IMessageSink
Afficher le fichier Open project: qwertie/ecsharp

Méthodes publiques

Свойство Type Description
Value ConsoleMessageSink

Protected Properties

Свойство Type Description
_lastColor ConsoleColor

Méthodes publiques

Méthode Description
ConsoleMessageSink ( ) : System
IsEnabled ( Severity level ) : bool

Always returns true.

Write ( Severity level, object context, string format ) : void
Write ( Severity level, object context, string format, object arg0, object arg1 = null ) : void
WriteColoredMessage ( ConsoleColor color, object context, string text ) : void

Méthodes protégées

Méthode Description
PickColor ( Severity level, string &levelText ) : ConsoleColor

Private Methods

Méthode Description
WriteCore ( Severity level, object context, string text ) : void

Method Details

ConsoleMessageSink() public méthode

public ConsoleMessageSink ( ) : System
Résultat System

IsEnabled() public méthode

Always returns true.
public IsEnabled ( Severity level ) : bool
level Severity
Résultat bool

PickColor() protected méthode

protected PickColor ( Severity level, string &levelText ) : ConsoleColor
level Severity
levelText string
Résultat ConsoleColor

Write() public méthode

public Write ( Severity level, object context, string format ) : void
level Severity
context object
format string
Résultat void

Write() public méthode

public Write ( Severity level, object context, string format, object arg0, object arg1 = null ) : void
level Severity
context object
format string
arg0 object
arg1 object
Résultat void

WriteColoredMessage() public static méthode

public static WriteColoredMessage ( ConsoleColor color, object context, string text ) : void
color ConsoleColor
context object
text string
Résultat void

Property Details

Value public_oe static_oe property

public static ConsoleMessageSink,Loyc Value
Résultat ConsoleMessageSink

_lastColor protected_oe static_oe property

protected static ConsoleColor _lastColor
Résultat ConsoleColor