Enum PUtilsConfig.LogLevel

java.lang.Object
java.lang.Enum<PUtilsConfig.LogLevel>
com.github.ygimenez.model.PUtilsConfig.LogLevel
All Implemented Interfaces:
Serializable, Comparable<PUtilsConfig.LogLevel>, java.lang.constant.Constable
Enclosing class:
PUtilsConfig

public static enum PUtilsConfig.LogLevel extends Enum<PUtilsConfig.LogLevel>
Levels used to filter what events are logged to the console by the library.
  • Enum Constant Details

    • NONE

      public static final PUtilsConfig.LogLevel NONE
      Disables all event logging.
    • LEVEL_1

      public static final PUtilsConfig.LogLevel LEVEL_1
      Logs only important events such as errors and dangerous actions (equivalent to ERROR level).
    • LEVEL_2

      public static final PUtilsConfig.LogLevel LEVEL_2
      All previous events plus minor issues (equivalent to WARN level).
    • LEVEL_3

      public static final PUtilsConfig.LogLevel LEVEL_3
      All previous events plus hints and general information (equivalent to INFO level).
    • LEVEL_4

      public static final PUtilsConfig.LogLevel LEVEL_4
      All previous events plus debugging messages (equivalent to DEBUG level).
  • Method Details

    • values

      public static PUtilsConfig.LogLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PUtilsConfig.LogLevel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null