Package org.apache.log4j
Class Level
java.lang.Object
org.apache.log4j.Priority
org.apache.log4j.Level
- All Implemented Interfaces:
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 is
OFF, FATAL, ERROR,
WARN, INFO, DEBUG and
ALL.
The Level class may be subclassed to define a larger
level set.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LevelDeprecated.TheALLhas the lowest possible rank and is intended to turn on all logging.static final LevelDeprecated.TheDEBUGLevel designates fine-grained informational events that are most useful to debug an application.static final LevelDeprecated.TheERRORlevel designates error events that might still allow the application to continue running.static final LevelDeprecated.TheFATALlevel designates very severe error events that will presumably lead the application to abort.static final LevelDeprecated.TheINFOlevel designates informational messages that highlight the progress of the application at coarse-grained level.static final LevelDeprecated.TheOFFhas the highest possible rank and is intended to turn off logging.static final LevelDeprecated.TheTRACELevel designates finer-grained informational events than theDEBUGinvalid input: '<'/code level.static final intDeprecated.TRACE level integer value.static final LevelDeprecated.TheWARNlevel designates potentially harmful situations.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic LeveltoLevel(int val) Deprecated.Convert an integer passed as argument to a level.static LevelDeprecated.Convert an integer passed as argument to a level.static LevelDeprecated.Convert the string passed as argument to a level.static LevelDeprecated.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 Details
-
TRACE_INT
public static final int TRACE_INTDeprecated.TRACE level integer value.- Since:
- 1.2.12
- See Also:
-
X_TRACE_INT
public static final int X_TRACE_INTDeprecated.- See Also:
-
OFF
Deprecated.TheOFFhas the highest possible rank and is intended to turn off logging. -
FATAL
Deprecated.TheFATALlevel designates very severe error events that will presumably lead the application to abort. -
ERROR
Deprecated.TheERRORlevel designates error events that might still allow the application to continue running. -
WARN
Deprecated.TheWARNlevel designates potentially harmful situations. -
INFO
Deprecated.TheINFOlevel designates informational messages that highlight the progress of the application at coarse-grained level. -
DEBUG
Deprecated.TheDEBUGLevel designates fine-grained informational events that are most useful to debug an application. -
TRACE
Deprecated.TheTRACELevel designates finer-grained informational events than theDEBUGinvalid input: '<'/code level.- Since:
- 1.2.12
-
ALL
Deprecated.TheALLhas the lowest possible rank and is intended to turn on all logging.
-
-
Method Details
-
toLevel
Deprecated.Convert the string passed as argument to a level. If the conversion fails, then this method returnsDEBUG. -
toLevel
Deprecated.Convert an integer passed as argument to a level. If the conversion fails, then this method returnsDEBUG. -
toLevel
Deprecated.Convert an integer passed as argument to a level. If the conversion fails, then this method returns the specified default. -
toLevel
Deprecated.Convert the string passed as argument to a level. If the conversion fails, then this method returns the value ofdefaultLevel.
-