C# Класс 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)
Наследование: ILogWriter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Instance ConsoleLogWriter

Открытые методы

Метод Описание
GetColor ( LogPrio prio ) : ConsoleColor

Get color for the specified logprio

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

Logwriters the specified source.

Описание методов

GetColor() публичный статический Метод

Get color for the specified logprio
public static GetColor ( LogPrio prio ) : ConsoleColor
prio LogPrio prio for the log entry
Результат ConsoleColor

Write() публичный Метод

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.
Результат void

Описание свойств

Instance публичное статическое свойство

The actual instance of this class.
public static ConsoleLogWriter,HttpServer Instance
Результат ConsoleLogWriter