Package de.craftsblock.craftsnet.logging
Enum Class LogLevel
- All Implemented Interfaces:
Serializable,Comparable<LogLevel>,Constable
An enumeration of log levels used for categorizing log messages.
Each log level has an associated color-coded prefix for formatting purposes.
- Since:
- 3.1.0-SNAPSHOT
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDebug level for detailed debugging information.Error level for error messages indicating problems.Exception level for fatal errors and exceptions.Informational level for general information messages.Warning level for potential issues or important notices. -
Method Summary
-
Enum Constant Details
-
DEBUG
Debug level for detailed debugging information. Color-coded light blue. -
INFO
Informational level for general information messages. Color-coded blue. -
WARNING
Warning level for potential issues or important notices. Color-coded yellow. -
ERROR
Error level for error messages indicating problems. Color-coded red. -
EXCEPTION
Exception level for fatal errors and exceptions. Color-coded red.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPrefix
Returns the color-coded prefix for this log level.- Returns:
- the prefix associated with this log level.
-