forked from IvanMurzak/Unity-MCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathILogStorage.cs
More file actions
38 lines (33 loc) · 1.48 KB
/
ILogStorage.cs
File metadata and controls
38 lines (33 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
┌──────────────────────────────────────────────────────────────────┐
│ Author: Ivan Murzak (https://github.com/IvanMurzak) │
│ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │
│ Copyright (c) 2025 Ivan Murzak │
│ Licensed under the Apache License, Version 2.0. │
│ See the LICENSE file in the project root for more information. │
└──────────────────────────────────────────────────────────────────┘
*/
#nullable enable
using System;
using System.Threading.Tasks;
namespace com.IvanMurzak.Unity.MCP
{
public interface ILogStorage : IDisposable
{
Task AppendAsync(params LogEntry[] entries);
void Append(params LogEntry[] entries);
Task FlushAsync();
void Flush();
Task<LogEntry[]> QueryAsync(
int maxEntries = 100,
UnityEngine.LogType? logTypeFilter = null,
bool includeStackTrace = false,
int lastMinutes = 0);
LogEntry[] Query(
int maxEntries = 100,
UnityEngine.LogType? logTypeFilter = null,
bool includeStackTrace = false,
int lastMinutes = 0);
void Clear();
}
}