# Result Logger Block

Result Logger Block feed data and file name to Multifile Log Writer to be logged as CSV file.

## Inputs

Name | Type | Description
--- | --- | ---
ErrorMsg | string | error message
Results | CogDictionary | Data needs to be written to CSV file, organized in CogDictionary structure

## Properties

A Multifile Log Writer component need to be chosen as its server in the property.

In LogFormatCallback, Result Logger Block can define the file name and the data to be written into that CSV file. Here is a sample code:

Here is an example of the results in CSV file:

TimestampUTC | ErrorMsg | Absolute StageMotionX | Absolute StageMotionY | AbsoluteStage MotionThetaDegrees | Relative StageMotionX | Relative StageMotionY | RelativeStageMotion ThetaDegrees
--- | --- | --- | --- | --- | --- | --- | ---
20200215 11:49:53.913 |  | 2.163 | -4.545 | 0.014 | 2.163 | -4.545 | 0.014
20200215 12:21:02.782 |  | 2.163 | -4.545 | 0.014 | 2.163 | -4.545 | 0.014