[IMPL] Made LoggerFactory compatible, Added Blacklist
This commit is contained in:
parent
cb1f8d42aa
commit
fad4c4598a
4 changed files with 163 additions and 45 deletions
|
|
@ -3,12 +3,14 @@
|
|||
public class LoggerObjects
|
||||
{
|
||||
internal List<LogEntry> LogsToPost = new();
|
||||
internal List<string> Blacklist = new();
|
||||
|
||||
public class LogEntry
|
||||
{
|
||||
public DateTime TimeOfEvent { get; set; }
|
||||
public LogLevel LogLevel { get; set; }
|
||||
public string Message { get; set; }
|
||||
public Exception? Exception { get; set; }
|
||||
}
|
||||
|
||||
public enum LogLevel
|
||||
|
|
@ -18,6 +20,8 @@ public class LoggerObjects
|
|||
WARN,
|
||||
INFO,
|
||||
DEBUG,
|
||||
DEBUG2,
|
||||
TRACE,
|
||||
NONE
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue