Package com.prineside.tdi2.utils.logging
Class LogLevel
java.lang.Object
com.prineside.tdi2.utils.logging.LogLevel
Log levels used in TLog.
For critical errors, throw exception.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
System.out / Debugging info, not requested to be printedstatic final byte
System.err / Severe issue that may lead to data lossstatic final byte
System.out / Regular info, when requested to be printed (such as describe())static final byte
System.err / Not critical issue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte
static String
getName
(byte level) static char
getShortName
(byte level) static boolean
isDebug()
static boolean
isInfo()
static boolean
static void
setCurrent
(byte v) static byte
shortNameToLevel
(char level)
-
Field Details
-
DEBUG
public static final byte DEBUGSystem.out / Debugging info, not requested to be printed- See Also:
-
INFO
public static final byte INFOSystem.out / Regular info, when requested to be printed (such as describe())- See Also:
-
WARNING
public static final byte WARNINGSystem.err / Not critical issue- See Also:
-
ERROR
public static final byte ERRORSystem.err / Severe issue that may lead to data loss- See Also:
-
-
Constructor Details
-
LogLevel
public LogLevel()
-
-
Method Details
-
getName
-
getShortName
public static char getShortName(byte level) -
shortNameToLevel
public static byte shortNameToLevel(char level) -
isDebug
public static boolean isDebug() -
setCurrent
public static void setCurrent(byte v) -
getCurrent
public static byte getCurrent() -
isInfo
public static boolean isInfo() -
isWarning
public static boolean isWarning()
-