C# Класс AlarmWorkflow.Shared.Diagnostics.ExceptionIntervalLogger

Writes Exception Loggs at a predetermined interval.
Показать файл Открыть проект Примеры использования класса

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

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