Class DataLoggerUtilities
Helper utility class for saving and loading JSON log records
Inheritance
System.Object
DataLoggerUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Marus.Logger
Assembly: cs.temp.dll.dll
Syntax
public static class DataLoggerUtilities
Methods
GetLogRecordsFromFile<T>(String)
Load up records from file
Declaration
public static List<LogRecord<T>> GetLogRecordsFromFile<T>(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | File to load from |
Returns
Type | Description |
---|---|
List<LogRecord<T>> |
Type Parameters
Name | Description |
---|---|
T | Type of record |
SaveAllLogs(String, String, String)
Save all logs to file
Declaration
public static void SaveAllLogs(string scenarioName = null, string scenarioDescription = null, string savesPath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | scenarioName | |
System.String | scenarioDescription | |
System.String | savesPath | Optional save path |
SaveLogsForTopic(String, String)
Save only logs for single topic to file
Declaration
public static void SaveLogsForTopic(string topic, string savesPath = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | topic | |
System.String | savesPath | Optional save path |