Files
glitchy-engine-beef/GlitchLog/src/LogLevel.bf
T
2020-11-05 22:20:09 +01:00

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];
}
}