parent
d8272c36a1
commit
84c0a25912
6 changed files with 113 additions and 118 deletions
29
LoggerObjects.cs
Normal file
29
LoggerObjects.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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