Enum Class DebugLevel

java.lang.Object
java.lang.Enum<DebugLevel>
net.tnemc.plugincore.core.compatibility.log.DebugLevel
All Implemented Interfaces:
Serializable, Comparable<DebugLevel>, Constable

public enum DebugLevel extends Enum<DebugLevel>
Used to outline the various debugging levels that could be utilized within the logging layer.
Since:
0.1.2.0
Author:
creatorfromhell
  • Enum Constant Details

    • OFF

      public static final DebugLevel OFF
      Off debug level. This disables debug mode.
    • STANDARD

      public static final DebugLevel STANDARD
      Standard debug level. This should include any inform calls and any error calls containing exceptions.
    • DETAILED

      public static final DebugLevel DETAILED
      Detailed debug level. This should contain more detailed error calls and debug calls.
    • DEVELOPER

      public static final DebugLevel DEVELOPER
      Developer debug level. This should contain all calls.
  • Method Details

    • values

      public static DebugLevel[] 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 DebugLevel 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
    • compare

      public boolean compare(DebugLevel compare)
    • getPriority

      public byte getPriority()
    • setPriority

      public void setPriority(byte priority)
    • getIdentifier

    • fromID

      public static DebugLevel fromID(String identifier)
    • setIdentifier

      public void setIdentifier(String identifier)