There are three main components when configuring log4j: Loggers, Appenders, and Layouts.
Table of Contents
Setting the log level
The log level can be set specifically for each appender in the
log4j2.properties file by setting the threshold value. If a log level is not specifically given for an appender as explained below, the root log level (INFO) will apply to all appenders by default.