C# Class Example1.TextLogEmitter

A metrics emitter that writes metrics to a specified text (csv) file.
Inheritance: IMetricsEmitter
Show file Open project: Real-Serious-Games/Metrics

Public Methods

Method Description
Emit ( string>.IDictionary properties, Metric metrics ) : void

Emit an array of metrics entries.

TextLogEmitter ( string logFilePath ) : System

Create the metrics emitter, specifying the path of the file to write to. If this file doesn't exist it will be created, otherwise new entries will just be appended to the end of the file.

Private Methods

Method Description
MetricToString ( string>.IDictionary properties, Metric metric ) : string

Get a single line string to write out to our file for a given metric.

Method Details

Emit() public method

Emit an array of metrics entries.
public Emit ( string>.IDictionary properties, Metric metrics ) : void
properties string>.IDictionary
metrics RSG.Metric
return void

TextLogEmitter() public method

Create the metrics emitter, specifying the path of the file to write to. If this file doesn't exist it will be created, otherwise new entries will just be appended to the end of the file.
public TextLogEmitter ( string logFilePath ) : System
logFilePath string
return System