Skip to content Skip to navigation
Check Our New Demo Website!
Home >> Tags >> log4j.xml

log4j.xml

Configure Log4j.xml file in java

Earlier we have seen configuring log4j with properties file. Now we will

see how to do the same with xml file. Below are steps to configure log4j with xml file.

Step 1: Download Log4j jar file. You can download from Apache Log4j

Step 2: Create a simple class named 'LoggerExample.java'

Step 3: Create log4j.xml file

Step 4: Attach log4j dependency to class path.

Subscribe to RSS - log4j.xml