This commit is contained in:
Alex
2025-01-12 21:44:30 +00:00
parent c479e6aaf1
commit d85bd6c315
24 changed files with 286 additions and 134 deletions
+9 -10
View File
@@ -2,13 +2,12 @@
public enum LogBackgroundColor
{
Default,
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White
}
Black = 40,
Red = 41,
Green = 42,
Yellow = 43,
Blue = 44,
Magenta = 45,
Cyan = 46,
White = 47
}
+9 -10
View File
@@ -2,13 +2,12 @@
public enum LogTextColor
{
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
Gray
}
Black = 30,
Red = 31,
Green = 32,
Yellow = 33,
Blue = 34,
Magenta = 35,
Cyan = 36,
White = 37
}
+7 -6
View File
@@ -4,12 +4,13 @@ namespace Core.Models.Utils;
public interface ILogger
{
void WriteToLogFile(string data);
void Log(string data, string color, string? backgroundColor = null);
void LogWithColor(string data, LogTextColor textColor, LogBackgroundColor? backgroundColor = null);
// 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, LogBackgroundColor? backgroundColor = null);
// void Success(string data);
void Error(string data);
void Warning(string data);
void Success(string data);
void Info(string data);
void Debug(string data, bool? onlyShowInConsole = null);
}
void Debug(string data);
}