C# Class Catel.Logging.Log

Default logging class that writes to the console or output window.
Inheritance: ILog
Datei anzeigen Open project: Catel/Catel

Public Methods

Method Description
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.

Private Methods

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

Method Details

Indent() public method

Increases the IndentLevel by 1.
public Indent ( ) : void
return void

Log() public method

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

Unindent() public method

Decreases the IndentLevel by 1.
public Unindent ( ) : void
return void

WriteWithData() public method

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

WriteWithData() public method

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