View all questions & answers for the PAP-001 exam
Which element in thelog4j2.xmlfile must be modified to change the log level in PingAccess?
AsyncLogger
RollingFile
Logger
Appenders
In Log4j2, theLoggerelement controls the log level (INFO,DEBUG,ERROR, etc.) for specific packages or classes.
Exact Extract:
“To modify logging levels, edit theelement inlog4j2.xmland change the level attribute.”
Option A (AsyncLogger)is a performance optimization, not for changing levels.
Option B (RollingFile)defines file rotation, not log levels.
Option C (Logger)is correct — this is where log levels are defined.
Option D (Appenders)define output destinations, not severity levels.
Submit