logger
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user