Class Level
- java.lang.Object
-
- com.supermap.services.util.log.Level
-
- All Implemented Interfaces:
- java.io.Serializable
public final class Level extends java.lang.Object implements java.io.SerializableLog level enumeration type.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static LevelALLAll levels, used to record all the information that can be recorded in the system.static LevelDEBUGDebug level, can be used to track the relevant information of the programme implementation.static LevelERRORError level, the error message is used to describe some of the errors that occurred during the execution of the program.static LevelFATALSeverity 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 LevelINFOThe information level, the general information for the implementation of the execution of the program.static LevelOFFClose all log level information, not recording any information.static LevelWARNWarning level, warning information is used to prompt some error settings or exceptions during the execution of the program.
-
Constructor Summary
Constructors Constructor and Description Level()
-
Method Summary
Methods Modifier and Type Method and Description static Levelget(java.lang.String name)Get the level by namejava.lang.StringgetName()Get the log name.intgetPriority()Get the log information.
-
-
-
Field Detail
-
OFF
public static final Level OFF
Close all log level information, not recording any information.
-
DEBUG
public static final Level DEBUG
Debug level, can be used to track the relevant information of the programme implementation.
-
INFO
public static final Level INFO
The information level, the general information for the implementation of the execution of the program.
-
WARN
public static final Level WARN
Warning level, warning information is used to prompt some error settings or exceptions during the execution of the program.
-
ERROR
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.
-
FATAL
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.
-
ALL
public static final Level ALL
All levels, used to record all the information that can be recorded in the system.
-
-
Method Detail
-
getPriority
public int getPriority()
Get the log information.
- Returns:
- the log information.
-
getName
public java.lang.String getName()
Get the log name.
- Returns:
- the log name.
-
get
public static Level get(java.lang.String name)
Get the level by name- Parameters:
name- specific name.- Returns:
- the log level
-
-