forked from Devolutions/UniGetUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIManagerLogger.cs
More file actions
36 lines (31 loc) · 1020 Bytes
/
Copy pathIManagerLogger.cs
File metadata and controls
36 lines (31 loc) · 1020 Bytes
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
using System.Diagnostics;
using UniGetUI.PackageEngine.Enums;
namespace UniGetUI.PackageEngine.ManagerClasses.Classes;
public interface IManagerLogger
{
public IReadOnlyList<ITaskLogger> Operations { get; }
INativeTaskLogger CreateNew(LoggableTaskType type);
IProcessTaskLogger CreateNew(LoggableTaskType type, Process process);
}
public interface ITaskLogger
{
IReadOnlyList<string> AsColoredString(bool verbose = false);
void Close(int returnCode);
}
public interface INativeTaskLogger : ITaskLogger
{
void Error(Exception? e);
void Error(IReadOnlyList<string> lines);
void Error(string? line);
void Log(IReadOnlyList<string> lines);
void Log(string? line);
}
public interface IProcessTaskLogger : ITaskLogger
{
void AddToStdErr(IReadOnlyList<string> lines);
void AddToStdErr(string? line);
void AddToStdIn(IReadOnlyList<string> lines);
void AddToStdIn(string? line);
void AddToStdOut(IReadOnlyList<string> lines);
void AddToStdOut(string? line);
}