I am using log4j for logging in my application. My requirement is to log DEBUG statements in a log file and INFO statements in console.
Here is my sample log4j.properties.
In above file, I set rootLogger to log DEBUG statements in a fileAppender and another logger "com.ptc.v1tool" to log INFO statements in console.
But the log file contains same entries as that in console i.e. log file contains only INFO logs
Can anyone suggest me how to accomplish my requirement?