GeezerVison is showing docs.oracle.com — System.Logger.Level (Java SE 25 & JDK 25)
Enum Class System.Logger.Level
-
-
Enum Constant Summary
Enum Constants
Enum Constant
Description
A marker to indicate that all levels are enabled.
DEBUG level: usually used to log debug information traces.
ERROR level: usually used to log error messages.
INFO level: usually used to log information messages.
A marker to indicate that all levels are disabled.
TRACE level: usually used to log diagnostic information.
WARNING level: usually used to log warning messages.
-
Method Summary
Modifier and Type
Method
Description
Returns the name of this level.
final int
Returns the severity of this level.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods declared in class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
-
TRACE
TRACE level: usually used to log diagnostic information.
This level
severity is
400.
-
DEBUG
DEBUG level: usually used to log debug information traces.
This level
severity is
500.
-
INFO
INFO level: usually used to log information messages.
This level
severity is
800.
-
WARNING
WARNING level: usually used to log warning messages.
This level
severity is
900.
-
ERROR
ERROR level: usually used to log error messages.
This level
severity is
1000.
-
-
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 name
NullPointerException - if the argument is null
-
getName
Returns the name of this level.
- Returns:
- this level Enum.name().
-
getSeverity
public final int getSeverity()
Returns the severity of this level.
A higher severity means a more severe condition.
- Returns:
- this level severity.