Through this class, you can obtain logs held by the APILog function.
| API | Description |
|---|
| Clear() | Deletes all stored log information at once. |
| API | Description |
|---|
| LogList | Returns a list of the log information it retains. |
| OnError | This is an event that runs when an error is detected. |
using System.Collections.Generic;
using UnityEngine;
#if NOA_DEBUGGER
using NoaDebugger;
#endif
public class Example
{
void ExampleMethod()
{
#if NOA_DEBUGGER
LinkedList<ApiLogEntry> apiLogList = NoaApiLog.LogList;
NoaApiLog.OnError += (ApiLogEntry log) => Debug.Log("Error detected.");
NoaApiLog.Clear();
#endif
}
}