Configure Log4j.xml file in java
Submitted by harrydev on Sun, 09/20/2015 - 09:41Earlier 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.