C# 클래스 AlarmWorkflow.Shared.Diagnostics.ExceptionIntervalLogger

Writes Exception Loggs at a predetermined interval.
파일 보기 프로젝트 열기: OpenFireSource/AlarmWorkflow 1 사용 예제들

공개 메소드들

메소드 설명
ExceptionIntervalLogger ( System.TimeSpan logInterval ) : System

Initializes the Exception Logger.

LogException ( object source, Exception ex ) : void

Log a exception. The Logger decides to log or discard the exception.

LogFormat ( Exception ex, LogType type, object source, string format ) : void

Ability to log the exception as formatted text.

ResetExceptionCollection ( ) : void

Reset the stored exception entries.

비공개 메소드들

메소드 설명
ShouldLogException ( Exception ex ) : bool

메소드 상세

ExceptionIntervalLogger() 공개 메소드

Initializes the Exception Logger.
public ExceptionIntervalLogger ( System.TimeSpan logInterval ) : System
logInterval System.TimeSpan the interval how often a Exception should be logged
리턴 System

LogException() 공개 메소드

Log a exception. The Logger decides to log or discard the exception.
public LogException ( object source, Exception ex ) : void
source object The component from which this type comes. The type name of the instance is used.
ex System.Exception The exception.
리턴 void

LogFormat() 공개 메소드

Ability to log the exception as formatted text.
public LogFormat ( Exception ex, LogType type, object source, string format ) : void
ex System.Exception The exception.
type LogType The message type.
source object The component from which this type comes. The type name of the instance is used.
format string The text to use as the format string.
리턴 void

ResetExceptionCollection() 공개 메소드

Reset the stored exception entries.
public ResetExceptionCollection ( ) : void
리턴 void