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
Exibir arquivo Open project: 3di/3di-viewer-rei-libs

Public Properties

Property Type Description
Instance ConsoleLogWriter

Public Methods

Method 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 method

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

Write() public method

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.
return void

Property Details

Instance public_oe static_oe property

The actual instance of this class.
public static ConsoleLogWriter,HttpServer Instance
return ConsoleLogWriter