org.apache.log4j
public class Level extends Priority implements Serializable
OFF
, FATAL
, ERROR
,
WARN
, INFO
DEBUG and
ALL
.
The Level
class may be subclassed to define a larger
level set.
Field Summary | |
---|---|
static Level | ALL
The ALL has the lowest possible rank and is intended to
turn on all logging. |
static Level | DEBUG
The DEBUG Level designates fine-grained
informational events that are most useful to debug an
application. |
static Level | ERROR
The ERROR level designates error events that
might still allow the application to continue running. |
static Level | FATAL
The FATAL level designates very severe error
events that will presumably lead the application to abort. |
static Level | INFO
The INFO level designates informational messages
that highlight the progress of the application at coarse-grained
level. |
static Level | OFF
The OFF has the highest possible rank and is
intended to turn off logging. |
static Level | TRACE
The TRACE Level designates finer-grained
informational events than the DEBUG |
static int | TRACE_INT
TRACE level integer value. |
static Level | WARN
The WARN level designates potentially harmful situations. |
Constructor Summary | |
---|---|
protected | Level(int level, String levelStr, int syslogEquivalent)
Instantiate a Level object. |
Method Summary | |
---|---|
static Level | toLevel(String sArg)
Convert the string passed as argument to a level. |
static Level | toLevel(int val)
Convert an integer passed as argument to a level. |
static Level | toLevel(int val, Level defaultLevel)
Convert an integer passed as argument to a level. |
static Level | toLevel(String sArg, Level defaultLevel)
Convert the string passed as argument to a level. |
ALL
has the lowest possible rank and is intended to
turn on all logging.DEBUG
Level designates fine-grained
informational events that are most useful to debug an
application.ERROR
level designates error events that
might still allow the application to continue running.FATAL
level designates very severe error
events that will presumably lead the application to abort.INFO
level designates informational messages
that highlight the progress of the application at coarse-grained
level.OFF
has the highest possible rank and is
intended to turn off logging.TRACE
Level designates finer-grained
informational events than the DEBUG
Since: 1.2.12
Since: 1.2.12
WARN
level designates potentially harmful situations.defaultLevel
.