Updated logger for real time message sending

This commit is contained in:
2025-05-06 13:57:12 +03:00
parent 3a7bd53cfc
commit 3e4709148f
6 changed files with 59 additions and 102 deletions

View File

@@ -2,21 +2,13 @@
public interface ILogger
{
public struct FormattedMessage {
public string Message;
public LogType Type;
}
string LogMessageFormat { get; set; }
event Action<ILogMessage>? OnLogReceived;
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();
void Log(string message, object sender);
void Log(string message, object sender, LogType type);
void LogException(Exception exception, object sender, bool logFullStack = false);
}