C# Class XWiki.Log

A class for writing logs to IsolatedStorage
Show file Open project: xwiki-contrib/xwiki-office

Public Methods

Method 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

Protected Methods

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

Reports an error.
public static Error ( String message ) : void
message String The log message.
return void

Exception() public static method

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

ExceptionSummary() public static method

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

FailAssert() public static method

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

GetLastError() public static method

Returns the last generated error message.
public static GetLastError ( ) : String
return String

GetLastException() public static method

public static GetLastException ( ) : Exception
return System.Exception

Information() public static method

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

Success() public static method

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

Warning() public static method

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

Write() public static method

public static Write ( String message, EventLogEntryType type ) : void
message String
type EventLogEntryType
return void

WriteFileLog() protected static method

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

WriteWindowsLog() protected static method

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