mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
25 lines
504 B
Beef
25 lines
504 B
Beef
using System;
|
|
|
|
namespace GlitchLog
|
|
{
|
|
/**
|
|
* Defines the severity level of a log message.
|
|
* @remarks also used to determine which levels will be logged.
|
|
*/
|
|
public enum LogLevel
|
|
{
|
|
case Trace = 0;
|
|
case Debug;
|
|
case Info;
|
|
case Warning;
|
|
case Error;
|
|
case Critical;
|
|
case Off;
|
|
|
|
public static readonly StringView[?] UpperStringViews = .("TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL", "OFF");
|
|
|
|
[Inline]
|
|
public StringView UpperString => UpperStringViews[this.Underlying];
|
|
}
|
|
}
|