public final class Level
extends java.lang.Object
implements java.io.Serializable
Log level enumeration type.
Modifier and Type | Field and Description |
---|---|
static Level |
ALL
All levels, used to record all the information that can be recorded in the system.
|
static Level |
DEBUG
Debug level, can be used to track the relevant information of the programme implementation.
|
static Level |
ERROR
Error level, the error message is used to describe some of the errors that occurred during the execution of the program.
|
static Level |
FATAL
Severity level, the error message is used to inform the program execution of some serious errors in the situation, which may cause the system can not continue to run.
|
static Level |
INFO
The information level, the general information for the implementation of the execution of the program.
|
static Level |
OFF
Close all log level information, not recording any information.
|
static Level |
WARN
Warning level, warning information is used to prompt some error settings or exceptions during the execution of the program.
|
Constructor and Description |
---|
Level() |
Modifier and Type | Method and Description |
---|---|
static Level |
get(java.lang.String name)
Get the level by name
|
java.lang.String |
getName()
Get the log name.
|
int |
getPriority()
Get the log information.
|
public static final Level OFF
Close all log level information, not recording any information.
public static final Level DEBUG
Debug level, can be used to track the relevant information of the programme implementation.
public static final Level INFO
The information level, the general information for the implementation of the execution of the program.
public static final Level WARN
Warning level, warning information is used to prompt some error settings or exceptions during the execution of the program.
public static final Level ERROR
Error level, the error message is used to describe some of the errors that occurred during the execution of the program.
public static final Level FATAL
Severity level, the error message is used to inform the program execution of some serious errors in the situation, which may cause the system can not continue to run.
public static final Level ALL
All levels, used to record all the information that can be recorded in the system.
public int getPriority()
Get the log information.
public java.lang.String getName()
Get the log name.
public static Level get(java.lang.String name)
name
- specific name.