Package org.apache.log4j
Class Level
- java.lang.Object
-
- org.apache.log4j.Priority
-
- org.apache.log4j.Level
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated(since="2022-01-27") public class Level extends Priority implements java.io.Serializable
Deprecated.Apache Log4j 1 has reached end of life in 2015 and is no longer supported.Defines the minimum set of levels recognized by the system, that isOFF,FATAL,ERROR,WARN,INFO,DEBUGandALL.The
Levelclass may be subclassed to define a larger level set.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LevelALLDeprecated.TheALLhas the lowest possible rank and is intended to turn on all logging.static LevelDEBUGDeprecated.TheDEBUGLevel designates fine-grained informational events that are most useful to debug an application.static LevelERRORDeprecated.TheERRORlevel designates error events that might still allow the application to continue running.static LevelFATALDeprecated.TheFATALlevel designates very severe error events that will presumably lead the application to abort.static LevelINFODeprecated.TheINFOlevel designates informational messages that highlight the progress of the application at coarse-grained level.static LevelOFFDeprecated.TheOFFhas the highest possible rank and is intended to turn off logging.static LevelTRACEDeprecated.TheTRACELevel designates finer-grained informational events than theDEBUGstatic intTRACE_INTDeprecated.TRACE level integer value.static LevelWARNDeprecated.TheWARNlevel designates potentially harmful situations.static intX_TRACE_INTDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LeveltoLevel(int val)Deprecated.Convert an integer passed as argument to a level.static LeveltoLevel(int val, Level defaultLevel)Deprecated.Convert an integer passed as argument to a level.static LeveltoLevel(java.lang.String sArg)Deprecated.Convert the string passed as argument to a level.static LeveltoLevel(java.lang.String sArg, Level defaultLevel)Deprecated.Convert the string passed as argument to a level.-
Methods inherited from class org.apache.log4j.Priority
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toString
-
-
-
-
Field Detail
-
TRACE_INT
public static final int TRACE_INT
Deprecated.TRACE level integer value.- Since:
- 1.2.12
- See Also:
- Constant Field Values
-
X_TRACE_INT
public static final int X_TRACE_INT
Deprecated.- See Also:
- Constant Field Values
-
OFF
public static final Level OFF
Deprecated.TheOFFhas the highest possible rank and is intended to turn off logging.
-
FATAL
public static final Level FATAL
Deprecated.TheFATALlevel designates very severe error events that will presumably lead the application to abort.
-
ERROR
public static final Level ERROR
Deprecated.TheERRORlevel designates error events that might still allow the application to continue running.
-
WARN
public static final Level WARN
Deprecated.TheWARNlevel designates potentially harmful situations.
-
INFO
public static final Level INFO
Deprecated.TheINFOlevel designates informational messages that highlight the progress of the application at coarse-grained level.
-
DEBUG
public static final Level DEBUG
Deprecated.TheDEBUGLevel designates fine-grained informational events that are most useful to debug an application.
-
TRACE
public static final Level TRACE
Deprecated.TheTRACELevel designates finer-grained informational events than theDEBUG- Since:
- 1.2.12
-
ALL
public static final Level ALL
Deprecated.TheALLhas the lowest possible rank and is intended to turn on all logging.
-
Method Detail
-
toLevel
public static Level toLevel(java.lang.String sArg)
Deprecated.Convert the string passed as argument to a level. If the conversion fails, then this method returnsDEBUG.
-
toLevel
public static Level toLevel(int val)
Deprecated.Convert an integer passed as argument to a level. If the conversion fails, then this method returnsDEBUG.
-
toLevel
public static Level toLevel(int val, Level defaultLevel)
Deprecated.Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default.
-
-
-