Class DataLogger
Singleton class used for data logging
Resets on scene change
Inheritance
System.Object
DataLogger
Namespace: Marus.Logger
Assembly: cs.temp.dll.dll
Syntax
public class DataLogger : Singleton<DataLogger>
Methods
ExportAllLogs()
Export logs from all loggers
Declaration
public Dictionary<string, IReadOnlyList<LogRecord>> ExportAllLogs()
Returns
Type | Description |
---|---|
Dictionary<System.String, IReadOnlyList<LogRecord>> |
ExportLogsForTopic(String)
Export logs from logger with given topic name
Declaration
public IReadOnlyList<LogRecord> ExportLogsForTopic(string topic)
Parameters
Type | Name | Description |
---|---|---|
System.String | topic |
Returns
Type | Description |
---|---|
IReadOnlyList<LogRecord> |
GetLogger<T>(String)
Get logger for topic with given name
Declaration
public GameObjectLogger<T> GetLogger<T>(string topic)
Parameters
Type | Name | Description |
---|---|---|
System.String | topic |
Returns
Type | Description |
---|---|
GameObjectLogger<T> |
Type Parameters
Name | Description |
---|---|
T |
Initialize()
Declaration
protected override void Initialize()