C# Класс CK.Core.ActivityMonitorErrorCounter

Count fatal, error or warn that occurred. It can also automatically adds a conclusion to closed groups that summarizes the number of fatals, errors and warnings.
Наследование: ActivityMonitorClient, IActivityMonitorBoundClient
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
TagErrorCounter CKTrait

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

Метод Описание
ActivityMonitorErrorCounter ( bool generateConclusion = false ) : System

Initializes a new error counter with GenerateConclusion sets to false.

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

Метод Описание
OnGroupClosed ( IActivityLogGroup group, IReadOnlyList conclusions ) : void

Restores current to the previous one (or keep it on the root if no opened group exist).

OnGroupClosing ( IActivityLogGroup group, List &conclusions ) : void

Handles group conclusion.

OnOpenGroup ( IActivityLogGroup group ) : void

Updates error counters.

OnUnfilteredLog ( ActivityMonitorLogData data ) : void

Updates error counters.

Приватные методы

Метод Описание
IActivityMonitorBoundClient ( IActivityMonitorImpl source, bool forceBuggyRemove ) : void

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

ActivityMonitorErrorCounter() публичный Метод

Initializes a new error counter with GenerateConclusion sets to false.
public ActivityMonitorErrorCounter ( bool generateConclusion = false ) : System
generateConclusion bool True to generate a conclusion. See .
Результат System

OnGroupClosed() защищенный Метод

Restores current to the previous one (or keep it on the root if no opened group exist).
protected OnGroupClosed ( IActivityLogGroup group, IReadOnlyList conclusions ) : void
group IActivityLogGroup The log group.
conclusions IReadOnlyList Texts that conclude the group.
Результат void

OnGroupClosing() защищенный Метод

Handles group conclusion.
protected OnGroupClosing ( IActivityLogGroup group, List &conclusions ) : void
group IActivityLogGroup The closing group.
conclusions List /// Mutable conclusions associated to the closing group. /// This can be null if no conclusions have been added yet. /// It is up to the first client that wants to add a conclusion to instantiate a new List object to carry the conclusions. ///
Результат void

OnOpenGroup() защищенный Метод

Updates error counters.
protected OnOpenGroup ( IActivityLogGroup group ) : void
group IActivityLogGroup The newly opened .
Результат void

OnUnfilteredLog() защищенный Метод

Updates error counters.
protected OnUnfilteredLog ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data. Never null.
Результат void

Описание свойств

TagErrorCounter публичное статическое свойство

Gets the tag used for generated error conclusions ("c:ErrorCounter") when GenerateConclusion is true.
public static CKTrait TagErrorCounter
Результат CKTrait