OFF Level 是最高等级的,用于关闭所有日志记录。
FATAL level 指出每个严重的错误事件将会导致应用程序的退出。
ERROR level 指出虽然发生错误事件,但仍然不影响系统的继续运行。
WARN level 表明会出现潜在错误的情形。
INFO level 表明 消息在粗粒度级别上突出强调应用程序的运行过程。
DEBUG Level 指出细粒度信息事件对调试应用程序是非常有帮助的。
与DEBUG 相比更细致化的记录事件消息。
ALL Level 是最低等级的,用于打开所有日志记录。
OFF 、 FATAL 、 ERROR 、 WARN 、 INFO 、 DEBUG 、 TRACE 、 ALL
Field Summary
static Level
ALL
The ALL has the lowest possible rank and is intended to turn on all logging.
DEBUG
The DEBUG Level designates fine-grained informational events that are most useful to debug an application.
ERROR
The ERROR level designates error events that might still allow the application to continue running.
FATAL
The FATAL level designates very severe error events that will presumably lead the application to abort.
static Lrevel
INFO
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
OFF
The OFF has the highest possible rank and is intended to turn off logging.
TRACE
The TRACE Level designates finer-grained informational events than the DEBUG
static int
TRACE_INT
TRACE level integer value.
WARN
The WARN level designates potentially harmful situations.
官网地址: log4j API http://jakarta.apache.org/log4j/docs/api/index.html