Package org.ldk.enums
Enum Level
- java.lang.Object
-
- java.lang.Enum<Level>
-
- org.ldk.enums.Level
-
- All Implemented Interfaces:
Serializable,Comparable<Level>
public enum Level extends Enum<Level>
An enum representing the available verbosity levels of the logger.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKLevel_DebugDesignates lower priority informationLDKLevel_ErrorDesignates very serious errorsLDKLevel_GossipDesignates extremely verbose information, including gossip-induced messagesLDKLevel_InfoDesignates useful informationLDKLevel_TraceDesignates very low priority, often extremely verbose, informationLDKLevel_WarnDesignates hazardous situations
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LevelvalueOf(String name)Returns the enum constant of this type with the specified name.static Level[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKLevel_Gossip
public static final Level LDKLevel_Gossip
Designates extremely verbose information, including gossip-induced messages
-
LDKLevel_Trace
public static final Level LDKLevel_Trace
Designates very low priority, often extremely verbose, information
-
LDKLevel_Debug
public static final Level LDKLevel_Debug
Designates lower priority information
-
LDKLevel_Info
public static final Level LDKLevel_Info
Designates useful information
-
LDKLevel_Warn
public static final Level LDKLevel_Warn
Designates hazardous situations
-
LDKLevel_Error
public static final Level LDKLevel_Error
Designates very serious errors
-
-
Method Detail
-
values
public static Level[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Level c : Level.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Level 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 nameNullPointerException- if the argument is null
-
-