No more static
This commit is contained in:
parent
f441a104c9
commit
d8272c36a1
6 changed files with 118 additions and 113 deletions
|
|
@ -1,29 +0,0 @@
|
|||
namespace Xorog.Logger;
|
||||
|
||||
public class LoggerObjects
|
||||
{
|
||||
internal List<LogEntry> LogsToPost = new();
|
||||
internal List<string> Blacklist = new();
|
||||
internal List<LogLevel> FileBlackList = 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
|
||||
{
|
||||
NONE,
|
||||
FATAL,
|
||||
ERROR,
|
||||
WARN,
|
||||
INFO,
|
||||
DEBUG,
|
||||
DEBUG2,
|
||||
TRACE,
|
||||
TRACE2
|
||||
}
|
||||
}
|
||||
Reference in a new issue