C# Class XWiki.Log

A class for writing logs to IsolatedStorage
Afficher le fichier Open project: xwiki-contrib/xwiki-office

Méthodes publiques

Méthode Description
Error ( String message ) : void

Reports an error.

Exception ( Exception ex ) : void

Logs info about an exception.

ExceptionSummary ( Exception ex ) : void

Logs a summary info about an exception.

FailAssert ( String message ) : void

Reports a failed assertion.

GetLastError ( ) : String

Returns the last generated error message.

GetLastException ( ) : Exception
Information ( String message ) : void

Writes some information to the log.

Success ( String message ) : void

Reports an success of an audit/assertion.

Warning ( String message ) : void

Writes an warning message to the logs.

Write ( String message, EventLogEntryType type ) : void

Méthodes protégées

Méthode Description
WriteFileLog ( String message, EventLogEntryType type ) : void

Writes a log entry to the log file

WriteWindowsLog ( String message, EventLogEntryType type ) : void

Writes a entry to the appWindows logging system.

Method Details

Error() public static méthode

Reports an error.
public static Error ( String message ) : void
message String The log message.
Résultat void

Exception() public static méthode

Logs info about an exception.
public static Exception ( Exception ex ) : void
ex System.Exception The logged exception.
Résultat void

ExceptionSummary() public static méthode

Logs a summary info about an exception.
public static ExceptionSummary ( Exception ex ) : void
ex System.Exception The logged exception.
Résultat void

FailAssert() public static méthode

Reports a failed assertion.
public static FailAssert ( String message ) : void
message String The log message.
Résultat void

GetLastError() public static méthode

Returns the last generated error message.
public static GetLastError ( ) : String
Résultat String

GetLastException() public static méthode

public static GetLastException ( ) : Exception
Résultat System.Exception

Information() public static méthode

Writes some information to the log.
public static Information ( String message ) : void
message String The log message.
Résultat void

Success() public static méthode

Reports an success of an audit/assertion.
public static Success ( String message ) : void
message String The log message.
Résultat void

Warning() public static méthode

Writes an warning message to the logs.
public static Warning ( String message ) : void
message String The log message.
Résultat void

Write() public static méthode

public static Write ( String message, EventLogEntryType type ) : void
message String
type EventLogEntryType
Résultat void

WriteFileLog() protected static méthode

Writes a log entry to the log file
protected static WriteFileLog ( String message, EventLogEntryType type ) : void
message String The message describing the error
type EventLogEntryType The log message type
Résultat void

WriteWindowsLog() protected static méthode

Writes a entry to the appWindows logging system.
protected static WriteWindowsLog ( String message, EventLogEntryType type ) : void
message String The logged message.
type EventLogEntryType The type of the message.
Résultat void