Redesigned the DiscordBotCore by splitting it into multiple projects. Created a WebUI and preparing to remove the DiscordBot application
This commit is contained in:
22
DiscordBotCore.Logging/ILogger.cs
Normal file
22
DiscordBotCore.Logging/ILogger.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace DiscordBotCore.Logging;
|
||||
|
||||
public interface ILogger
|
||||
{
|
||||
public struct FormattedMessage {
|
||||
public string Message;
|
||||
public LogType Type;
|
||||
}
|
||||
|
||||
string LogMessageFormat { get; set; }
|
||||
|
||||
void Log(string message);
|
||||
void Log(string message, LogType logType);
|
||||
void Log(string message, LogType logType, string format);
|
||||
void Log(string message, object Sender);
|
||||
void Log(string message, object Sender, LogType type);
|
||||
void LogException(Exception exception, object Sender, bool logFullStack = false);
|
||||
|
||||
void SetOutFunction(Action<string,LogType> outFunction);
|
||||
|
||||
string GetLogsHistory();
|
||||
}
|
||||
Reference in New Issue
Block a user