public final class LogLevel
extends java.util.logging.Level
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Level |
DEBUG
The logging level for information for debugging.
|
static java.util.logging.Level |
ERROR
The logging level indicating a serious failure.
|
static java.util.logging.Level |
INFO
The logging level for informational messages.
|
static java.util.logging.Level |
WARNING
The logging level indicating a potential problem.
|
Modifier and Type | Method and Description |
---|---|
static java.util.logging.Level |
parse(java.lang.String name)
Parse a level name string into a Level.
|
public static final java.util.logging.Level ERROR
public static final java.util.logging.Level WARNING
public static final java.util.logging.Level INFO
public static final java.util.logging.Level DEBUG
public static java.util.logging.Level parse(java.lang.String name)
The argument string may consist of either a level name or an integer value.
For example:
ERROR
;
1000
;
name
- string to be parsedCONFIG
). Passing an integer that does not
(e.g., 1) will return a new level name initialised to that valuejava.lang.NullPointerException
- if the name is null
java.lang.IllegalArgumentException
- if the value is not valid. Valid values are integers between
Integer.MIN_VALUE
and Integer.MAX_VALUE
, and all known level names.
Known names are:
ERROR
and WARNING
);
Level
class (for example, SEVERE
and
FINE
); levels created by these classes with appropriate package access;