C# Класс Catel.Logging.LogListenerBase

Abstract base class that implements the ILogListener interface.
Наследование: ILogListener
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
LogEventStrings string>.Dictionary

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

Метод Описание
Debug ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void

Called when a LogEvent.Debug message is written to the log.

Error ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void

Called when a LogEvent.Error message is written to the log.

FormatLogEvent ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : string

Formats the log event to a message which can be written to a log persistence storage.

Info ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void

Called when a LogEvent.Info message is written to the log.

LogListenerBase ( bool ignoreCatelLogging = false ) : System

Initializes a new instance of the LogListenerBase class.

RaiseLogMessage ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : void

Raises the LogMessage event.

ShouldIgnoreLogMessage ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : bool

Returns whether the log message should be ignored

Status ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void

Called when a LogEvent.Status message is written to the log.

Warning ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void

Called when a LogEvent.Warning message is written to the log.

Write ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : void

Called when any message is written to the log.

Приватные методы

Метод Описание
Debug ( ILog log, string message, object extraData, DateTime time ) : void
Error ( ILog log, string message, object extraData, DateTime time ) : void
FormatLogEvent ( ILog log, string message, LogEvent logEvent, object extraData, DateTime time ) : string
ILogListener ( ILog log, string message, LogEvent logEvent, object extraData, DateTime time ) : void
ILogListener ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : void

Called when any message is written to the log.

ILogListener ( ILog log, string message, object extraData, DateTime time ) : void
ILogListener ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void

Called when a LogEvent.Debug message is written to the log.

Info ( ILog log, string message, object extraData, DateTime time ) : void
LogListenerBase ( ) : System

Initializes static members of the LogListenerBase class.

RaiseLogMessage ( ILog log, string message, LogEvent logEvent, object extraData, DateTime time ) : void
ShouldIgnoreLogMessage ( ILog log, string message, LogEvent logEvent, object extraData, DateTime time ) : bool
Warning ( ILog log, string message, object extraData, DateTime time ) : void
Write ( ILog log, string message, LogEvent logEvent, object extraData, DateTime time ) : void

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

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

Called when a LogEvent.Debug message is written to the log.
protected Debug ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
extraData object The additional data.
logData LogData The log data.
time DateTime The time.
Результат void

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

Called when a LogEvent.Error message is written to the log.
protected Error ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
extraData object The additional data.
logData LogData The log data.
time DateTime The time.
Результат void

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

Formats the log event to a message which can be written to a log persistence storage.
protected FormatLogEvent ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : string
log ILog The log.
message string The message.
logEvent LogEvent The log event.
extraData object The extra data.
logData LogData The log data.
time DateTime The time.
Результат string

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

Called when a LogEvent.Info message is written to the log.
protected Info ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
extraData object The additional data.
logData LogData The log data.
time DateTime The time.
Результат void

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

Initializes a new instance of the LogListenerBase class.
protected LogListenerBase ( bool ignoreCatelLogging = false ) : System
ignoreCatelLogging bool if set to true, the internal logging of Catel will be ignored.
Результат System

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

Raises the LogMessage event.
protected RaiseLogMessage ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
logEvent LogEvent The log event.
extraData object The extra data.
logData LogData The log data.
time DateTime The time.
Результат void

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

Returns whether the log message should be ignored
protected ShouldIgnoreLogMessage ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : bool
log ILog The log.
message string The message.
logEvent LogEvent The log event.
extraData object The extra data.
logData LogData The log data.
time DateTime The time.
Результат bool

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

Called when a LogEvent.Status message is written to the log.
protected Status ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
extraData object The additional data.
logData LogData The log data.
time DateTime The time.
Результат void

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

Called when a LogEvent.Warning message is written to the log.
protected Warning ( ILog log, string message, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
extraData object The additional data.
logData LogData The log data.
time DateTime The time.
Результат void

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

Called when any message is written to the log.
protected Write ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time ) : void
log ILog The log.
message string The message.
logEvent LogEvent The log event.
extraData object The additional data.
logData LogData The log data.
time DateTime The time.
Результат void

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

LogEventStrings защищенное статическое свойство

The log event strings.
protected static Dictionary LogEventStrings
Результат string>.Dictionary