C# Class Catel.Logging.Log

Default logging class that writes to the console or output window.
Inheritance: ILog
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode 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

Méthode 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 méthode

Increases the IndentLevel by 1.
public Indent ( ) : void
Résultat void

Log() public méthode

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.
Résultat System

Unindent() public méthode

Decreases the IndentLevel by 1.
public Unindent ( ) : void
Résultat void

WriteWithData() public méthode

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.
Résultat void

WriteWithData() public méthode

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.
Résultat void