[IMPL] Made LoggerFactory compatible, Added Blacklist

This commit is contained in:
XorogVEVO 2022-04-09 16:03:02 +02:00
parent cb1f8d42aa
commit fad4c4598a
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36
4 changed files with 163 additions and 45 deletions

View file

@ -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
}
}