C# 클래스 XWiki.Log

A class for writing logs to IsolatedStorage
파일 보기 프로젝트 열기: xwiki-contrib/xwiki-office

공개 메소드들

메소드 설명
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