C# Class CK.Monitoring.CKMonWriterClient

This client writes .ckmon files for one monitor. To close output file, simply unregister this client.
Inheritance: IActivityMonitorBoundClient, IMulticastLogInfo
Mostra file Open project: Invenietis/ck-core

Private Properties

Property Type Description
IActivityMonitorBoundClient void
IActivityMonitorClient void
IActivityMonitorClient void
IActivityMonitorClient void
IActivityMonitorClient void
IActivityMonitorClient void
IActivityMonitorClient void

Public Methods

Method Description
CKMonWriterClient ( string path, int maxCountPerFile ) : System

Initializes a new instance of CKMonWriterClient that can be registered to write uncompressed .ckmon file for this monitor.

CKMonWriterClient ( string path, int maxCountPerFile, LogFilter minimalFilter, bool useGzipCompression = false ) : System

Initializes a new instance of CKMonWriterClient that can be registered to write compressed or uncompressed .ckmon file for this monitor.

Close ( ) : void

Closes this writer if it IsOpened. It can be re-Opened later.

Open ( ) : bool

Opens this writer if it is not already opened.

Private Methods

Method Description
IActivityMonitorBoundClient ( IActivityMonitorImpl source, bool forceBuggyRemove ) : void
IActivityMonitorClient ( ActivityMonitorLogData data ) : void
IActivityMonitorClient ( CKTrait newTrait ) : void
IActivityMonitorClient ( IActivityLogGroup group ) : void
IActivityMonitorClient ( IActivityLogGroup group, IReadOnlyList conclusions ) : void
IActivityMonitorClient ( IActivityLogGroup group, List &conclusions ) : void
IActivityMonitorClient ( string newTopic, string fileName, int lineNumber ) : void

Method Details

CKMonWriterClient() public method

Initializes a new instance of CKMonWriterClient that can be registered to write uncompressed .ckmon file for this monitor.
public CKMonWriterClient ( string path, int maxCountPerFile ) : System
path string The path. Can be absolute. When relative, it will be under that must be set.
maxCountPerFile int Maximum number of entries per file. Must be greater than 1.
return System

CKMonWriterClient() public method

Initializes a new instance of CKMonWriterClient that can be registered to write compressed or uncompressed .ckmon file for this monitor.
public CKMonWriterClient ( string path, int maxCountPerFile, LogFilter minimalFilter, bool useGzipCompression = false ) : System
path string The path. Can be absolute. When relative, it will be under that must be set.
maxCountPerFile int Maximum number of entries per file. Must be greater than 1.
minimalFilter CK.Core.LogFilter Minimal filter for this client.
useGzipCompression bool Whether to output compressed .ckmon files. Defaults to false (do not compress).
return System

Close() public method

Closes this writer if it IsOpened. It can be re-Opened later.
public Close ( ) : void
return void

Open() public method

Opens this writer if it is not already opened.
public Open ( ) : bool
return bool