C# Класс XWiki.Log

A class for writing logs to IsolatedStorage
Показать файл Открыть проект

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

Метод Описание
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

Защищенные методы

Метод Описание
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.

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

Error() публичный статический Метод

Reports an error.
public static Error ( String message ) : void
message String The log message.
Результат void

Exception() публичный статический Метод

Logs info about an exception.
public static Exception ( Exception ex ) : void
ex System.Exception The logged exception.
Результат void

ExceptionSummary() публичный статический Метод

Logs a summary info about an exception.
public static ExceptionSummary ( Exception ex ) : void
ex System.Exception The logged exception.
Результат void

FailAssert() публичный статический Метод

Reports a failed assertion.
public static FailAssert ( String message ) : void
message String The log message.
Результат void

GetLastError() публичный статический Метод

Returns the last generated error message.
public static GetLastError ( ) : String
Результат String

GetLastException() публичный статический Метод

public static GetLastException ( ) : Exception
Результат System.Exception

Information() публичный статический Метод

Writes some information to the log.
public static Information ( String message ) : void
message String The log message.
Результат void

Success() публичный статический Метод

Reports an success of an audit/assertion.
public static Success ( String message ) : void
message String The log message.
Результат void

Warning() публичный статический Метод

Writes an warning message to the logs.
public static Warning ( String message ) : void
message String The log message.
Результат void

Write() публичный статический Метод

public static Write ( String message, EventLogEntryType type ) : void
message String
type EventLogEntryType
Результат void

WriteFileLog() защищенный статический Метод

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
Результат void

WriteWindowsLog() защищенный статический Метод

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.
Результат void