InnoTecSol >ICS >ICS Version: 0.4.8888 Documentation >Statistics
ICS Version: 0.4.8888
Statistics

The statistics extension provides the means to write statistic snapshots to a log file.

The following steps are required to activate and configure the statistics extension:

In order to activate the statistics extension, the library must be loaded according to extension library configuration.


<EXTLIBS>
	<LIB>statistics</LIB>
</EXTLIBS>
	

The statistics configuration is introduced by the statistics:STATISTICS tag, which must be child of the DEFAULT tag.


<statistics:STATISTICS FILE="F:/icstest/icstest/log/stat.log" REPEAT="5" MAXRECORDS="20000"/>
	

The statistics:STATISTICS tag comprises three attributes:

  • FILE
  • REPEAT
  • MAXRECORDS

FILE

The FILE attribute specifies the file to which the statistical snapshots should be written.

If FILE is not specified or the file specified is not valid no statistical records are written.

REPEAT

The REPEAT attribute specifies the frequency in seconds that a snapshot should be written to the file.

If REPEAT is set to 0 the statistical writing is disabled.

MAXRECORDS

The MAXRECORDS attribute specifies the max. number of records that are written to a file.

If the maximum number of records are written a new file is created and the previous file is renamed by appending the current timestamp.

If MAXRECORDS is set to 0 ALL records are written to the same file.