Added Core module support. Things are unstable
This commit is contained in:
@@ -1,19 +1,29 @@
|
||||
using DiscordBotCore.Others;
|
||||
using DiscordBotCore.Interfaces.Modules;
|
||||
using DiscordBotCore.Others;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DiscordBotCore.Interfaces.Logger
|
||||
{
|
||||
public interface ILogger
|
||||
public interface ILogger : IBaseModule
|
||||
{
|
||||
public struct FormattedMessage { public string Message; public LogType Type; }
|
||||
public string LogMessageFormat { get; set; }
|
||||
public struct FormattedMessage {
|
||||
public string Message;
|
||||
public LogType Type;
|
||||
}
|
||||
|
||||
public void Log(ILogMessage message);
|
||||
public void LogException(Exception exception, object Sender, bool logFullStack = false);
|
||||
string LogMessageFormat { get; set; }
|
||||
|
||||
public event EventHandler<FormattedMessage> OnFormattedLog;
|
||||
public event EventHandler<ILogMessage> OnRawLog;
|
||||
event EventHandler<FormattedMessage> OnFormattedLog;
|
||||
event EventHandler<ILogMessage> OnRawLog;
|
||||
|
||||
void Log(ILogMessage message);
|
||||
void Log(ILogMessage message, string format);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user