Package org.onlab.util
Enum Tools.LogLevel
- java.lang.Object
-
- java.lang.Enum<Tools.LogLevel>
-
- org.onlab.util.Tools.LogLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<Tools.LogLevel>
- Enclosing class:
- Tools
public static enum Tools.LogLevel extends Enum<Tools.LogLevel>
Log level for the customized logger.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tools.LogLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static Tools.LogLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRACE
public static final Tools.LogLevel TRACE
-
DEBUG
public static final Tools.LogLevel DEBUG
-
INFO
public static final Tools.LogLevel INFO
-
WARN
public static final Tools.LogLevel WARN
-
ERROR
public static final Tools.LogLevel ERROR
-
-
Method Detail
-
values
public static Tools.LogLevel[] 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 (Tools.LogLevel c : Tools.LogLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tools.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 nameNullPointerException
- if the argument is null
-
-