Files
SPT-Server-Build/Core/Models/Utils/ISptLogger.cs
T
2025-01-15 15:06:54 +00:00

18 lines
732 B
C#

using Core.Models.Logging;
namespace Core.Models.Utils;
public interface ISptLogger<T>
{
// TODO: Removing these 4 methods for now, revisit in the future
// void WriteToLogFile(string data);
// void Log(string data, LogTextColor? color, string? backgroundColor = null);
void LogWithColor(string data, Exception? ex = null, LogTextColor? textColor = null, LogBackgroundColor? backgroundColor = null);
void Success(string data, Exception? ex = null);
void Error(string data, Exception? ex = null);
void Warning(string data, Exception? ex = null);
void Info(string data, Exception? ex = null);
void Debug(string data, Exception? ex = null);
void Critical(string data, Exception? ex = null);
}