Enum Class LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
de.craftsblock.craftsnet.logging.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>, Constable

public enum LogLevel extends Enum<LogLevel>
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
  • Enum Constant Details

    • DEBUG

      public static final LogLevel DEBUG
      Debug level for detailed debugging information. Color-coded light blue.
    • INFO

      public static final LogLevel INFO
      Informational level for general information messages. Color-coded blue.
    • WARNING

      public static final LogLevel WARNING
      Warning level for potential issues or important notices. Color-coded yellow.
    • ERROR

      public static final LogLevel ERROR
      Error level for error messages indicating problems. Color-coded red.
    • EXCEPTION

      public static final LogLevel EXCEPTION
      Exception level for fatal errors and exceptions. Color-coded red.
  • Method Details

    • values

      public static LogLevel[] 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

      public static LogLevel valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getPrefix

      public String getPrefix()
      Returns the color-coded prefix for this log level.
      Returns:
      the prefix associated with this log level.