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