Page History
...
Level | Description |
---|---|
OFF | The highest possible rank and is intended to turn off logging. |
FATAL | Severe errors that cause premature termination. Visible in console. |
ERROR | Other runtime errors or unexpected conditions. Visible in console. |
WARN | Use of deprecated APIs, poor use of API, "almost" errors, other runtime situations that are undesirable or unexpected, but not necessarily "wrong". Visible in console. |
INFO | Interesting runtime events (startup/shutdown). Visible in console, so be conservative and keep to a minimum. |
DEBUG | Detailed information on the flow through the system. Written to logs only. |
TRACE | More detailed information. Written to logs only. |
Hide block | |||||||
---|---|---|---|---|---|---|---|
Pattern layoutLog4j2's Pattern Layout is a customizable log message formatter that uses conversion patterns to generate structured log outputs.
Example
The above pattern matches:
|
Appenders
Appenders define where the output is directed. The following appenders are configured by default in log4j2.xml
. They write messages to the console and to various log files.
...