C# 클래스 Example1.TextLogEmitter

A metrics emitter that writes metrics to a specified text (csv) file.
상속: IMetricsEmitter
파일 보기 프로젝트 열기: Real-Serious-Games/Metrics

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
MetricToString ( string>.IDictionary properties, Metric metric ) : string

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

메소드 상세

Emit() 공개 메소드

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

TextLogEmitter() 공개 메소드

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
리턴 System