Improved logging.
This commit is contained in:
17
PluginManager/Interfaces/Logger/ILogger.cs
Normal file
17
PluginManager/Interfaces/Logger/ILogger.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using PluginManager.Others;
|
||||
using PluginManager.Others.Logger;
|
||||
|
||||
namespace PluginManager.Interfaces.Logger;
|
||||
|
||||
internal interface ILogger
|
||||
{
|
||||
bool IsEnabled { get; init; }
|
||||
bool OutputToFile { get; init; }
|
||||
|
||||
event EventHandler<Log> OnLog;
|
||||
Task Log(
|
||||
string message = "", string outputFile = "", Type? source = default, LogType type = LogType.INFO,
|
||||
DateTime throwTime = default);
|
||||
}
|
||||
Reference in New Issue
Block a user