C# Class HttpServer.ConsoleLogWriter

This class writes to the console. It colors the output depending on the logprio and includes a 3-level stacktrace (in debug mode)
Inheritance: ILogWriter
Afficher le fichier Open project: 3di/3di-viewer-rei-libs

Méthodes publiques

Свойство Type Description
Instance ConsoleLogWriter

Méthodes publiques

Méthode Description
GetColor ( LogPrio prio ) : ConsoleColor

Get color for the specified logprio

Write ( object source, LogPrio prio, string message ) : void

Logwriters the specified source.

Method Details

GetColor() public static méthode

Get color for the specified logprio
public static GetColor ( LogPrio prio ) : ConsoleColor
prio LogPrio prio for the log entry
Résultat ConsoleColor

Write() public méthode

Logwriters the specified source.
public Write ( object source, LogPrio prio, string message ) : void
source object object that wrote the logentry.
prio LogPrio Importance of the log message
message string The message.
Résultat void

Property Details

Instance public_oe static_oe property

The actual instance of this class.
public static ConsoleLogWriter,HttpServer Instance
Résultat ConsoleLogWriter