C# Class CK.Core.ActivityMonitorSimpleCollector

Simple collector of log entries which level is greater or equal to MinimalFilter. Its Capacity defaults to 50 (no more than Capacity entries are kept). Used by the CollectEntries extension method.
Inheritance: IActivityMonitorClient
显示文件 Open project: Invenietis/ck-core Class Usage Examples

Public Methods

Method Description
ActivityMonitorSimpleCollector ( ) : System

Initializes a new collector with an initial capacity of 50 errors (MinimalFilter is set to LogLevelFilter.Error).

Clear ( ) : void

Clears the current Entries list.

Private Methods

Method Description
IActivityMonitorClient ( ActivityMonitorLogData data ) : void

Appends any log with level equal or above MinimalFilter to Entries.

IActivityMonitorClient ( CKTrait newTrait ) : void
IActivityMonitorClient ( IActivityLogGroup group ) : void

Appends any group with level equal or above MinimalFilter to Entries.

IActivityMonitorClient ( IActivityLogGroup group, IReadOnlyList conclusions ) : void
IActivityMonitorClient ( IActivityLogGroup group, List &conclusions ) : void
IActivityMonitorClient ( string newTopic, string fileName, int lineNumber ) : void

Method Details

ActivityMonitorSimpleCollector() public method

Initializes a new collector with an initial capacity of 50 errors (MinimalFilter is set to LogLevelFilter.Error).
public ActivityMonitorSimpleCollector ( ) : System
return System

Clear() public method

Clears the current Entries list.
public Clear ( ) : void
return void