T type logging

This commit is contained in:
Alex
2025-01-15 15:06:54 +00:00
parent f9f108448a
commit 8b3305efca
100 changed files with 1229 additions and 761 deletions
-17
View File
@@ -1,17 +0,0 @@
using Core.Models.Logging;
namespace Core.Models.Utils;
public interface ILogger
{
// 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, LogTextColor? textColor = null, LogBackgroundColor? backgroundColor = null);
void Success(string data);
void Error(string data);
void Warning(string data);
void Info(string data);
void Debug(string data);
void Critical(string data);
}
+17
View File
@@ -0,0 +1,17 @@
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);
}