Package com.github.ygimenez.model
Enum PUtilsConfig.LogLevel
- All Implemented Interfaces:
Serializable,Comparable<PUtilsConfig.LogLevel>,java.lang.constant.Constable
- Enclosing class:
- PUtilsConfig
Levels used to filter what events are logged to the console by the library.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLogs only important events such as errors and dangerous actions (equivalent to ERROR level).All previous events plus minor issues (equivalent to WARN level).All previous events plus hints and general information (equivalent to INFO level).All previous events plus debugging messages (equivalent to DEBUG level).Disables all event logging. -
Method Summary
Modifier and TypeMethodDescriptionstatic PUtilsConfig.LogLevelReturns the enum constant of this type with the specified name.static PUtilsConfig.LogLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Disables all event logging. -
LEVEL_1
Logs only important events such as errors and dangerous actions (equivalent to ERROR level). -
LEVEL_2
All previous events plus minor issues (equivalent to WARN level). -
LEVEL_3
All previous events plus hints and general information (equivalent to INFO level). -
LEVEL_4
All previous events plus debugging messages (equivalent to DEBUG level).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-