Package org.eclipse.jetty.logging
Enum Class JettyLevel
- All Implemented Interfaces:
Serializable
,Comparable<JettyLevel>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JettyLevel
fromLevel
(org.slf4j.event.Level slf4jLevel) boolean
includes
(JettyLevel testLevel) Tests that a provided level is included by the level value of this level.static JettyLevel
intToLevel
(int levelInt) static JettyLevel
strToLevel
(String levelStr) int
toInt()
org.slf4j.event.Level
toLevel()
toString()
static JettyLevel
Returns the enum constant of this class with the specified name.static JettyLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
-
TRACE
-
DEBUG
-
INFO
-
WARN
-
ERROR
-
OFF
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromLevel
-
toInt
public int toInt() -
toLevel
public org.slf4j.event.Level toLevel() -
includes
Tests that a provided level is included by the level value of this level.- Parameters:
testLevel
- the level to test against.- Returns:
- true if includes this includes the test level.
-
toString
- Overrides:
toString
in classEnum<JettyLevel>
-
intToLevel
-
strToLevel
-