C# Класс Common.Logging.Simple.DebugOutLogger

Наследование: Common.Logging.Simple.AbstractSimpleLogger
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System

Creates and initializes a logger that writes messages to System.Diagnostics.Debug.

Защищенные методы

Метод Описание
WriteInternal ( LogLevel level, object message, Exception e ) : void

Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.

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

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

Creates and initializes a logger that writes messages to System.Diagnostics.Debug.
public DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System
logName string The key, usually type key of the calling class, of the logger.
logLevel LogLevel The current logging threshold. Messages received that are beneath this threshold will not be logged.
showLevel bool Include the current log level in the log message.
showDateTime bool Include the current time in the log message.
showLogName bool Include the instance key in the log message.
dateTimeFormat string The date and time format to use in the log message.
Результат System

WriteInternal() защищенный Метод

Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.
protected WriteInternal ( LogLevel level, object message, Exception e ) : void
level LogLevel The of the message.
message object The log message.
e System.Exception An optional associated with the message.
Результат void