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

Default logging class that writes to the console or output window.
Наследование: ILog
Показать файл Открыть проект

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

Метод Описание
Indent ( ) : void

Increases the IndentLevel by 1.

Log ( Type targetType ) : System

Initializes a new instance of the Log class.

Unindent ( ) : void

Decreases the IndentLevel by 1.

WriteWithData ( string message, LogData logData, LogEvent logEvent ) : void

Writes the specified message as error message with log data.

WriteWithData ( string message, object extraData, LogEvent logEvent ) : void

Writes the specified message as specified log event with extra data.

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

Метод Описание
DebugWithData ( Exception exception, string message, object extraData = null ) : void
DebugWithData ( string message, LogData logData ) : void
DebugWithData ( string message, object extraData = null ) : void
ErrorWithData ( Exception exception, string message, object extraData = null ) : void
ErrorWithData ( string message, LogData logData ) : void
ErrorWithData ( string message, object extraData = null ) : void
InfoWithData ( Exception exception, string message, object extraData = null ) : void
InfoWithData ( string message, LogData logData ) : void
InfoWithData ( string message, object extraData = null ) : void
WarningWithData ( Exception exception, string message, object extraData = null ) : void
WarningWithData ( string message, LogData logData ) : void
WarningWithData ( string message, object extraData = null ) : void
WriteMessage ( string message, object extraData, LogData logData, LogEvent logEvent ) : void

Raises the LogMessage event.

WriteWithData ( Exception exception, string message, object extraData, LogEvent logEvent ) : void

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

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

Increases the IndentLevel by 1.
public Indent ( ) : void
Результат void

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

Initializes a new instance of the Log class.
The is null.
public Log ( Type targetType ) : System
targetType System.Type The type for which this log is intented.
Результат System

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

Decreases the IndentLevel by 1.
public Unindent ( ) : void
Результат void

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

Writes the specified message as error message with log data.
public WriteWithData ( string message, LogData logData, LogEvent logEvent ) : void
message string The message.
logData LogData The log data.
logEvent LogEvent The log event.
Результат void

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

Writes the specified message as specified log event with extra data.
public WriteWithData ( string message, object extraData, LogEvent logEvent ) : void
message string The message.
extraData object The extra data.
logEvent LogEvent The log event.
Результат void