Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: How will you define a root logger turning DEBUG mode off?
Answer:

The following syntax defines the root logger with WARN mode turning DEBUG mode off.

# Define the root logger with appender file

log = /usr/home/log4j log4j.rootLogger = WARN, FILE

Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook