Session has been expired. Please login again.
Prepare for your Interview today!
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
# Define the root logger with appender file
log = /usr/home/log4j log4j.rootLogger = WARN, FILE
There are other support objects in the Log4j framework are:
The log4j API provides the object org.apache.log4j.jdbc. JDBCAppender object can put logging information in a particular database.
Log4j is a thread-safe, log4j components are built to be used in multithread systems.
Yes, you can extend the layout class to create your own customized log format. Appenders can be parameterized to use the layout of your choice.
Most helpful rated by users: