I am planning to have two separate log files for different packages - one for app and other for daos.
I am using following log4j.xml
I am using following log4j.properties file
And in my class in ex.com.app package I am using
private static Logger log = Logger.getLogger(LogonAction.class);
And in my class in ex.com.dao package I am using
private static Logger log = Logger.getLogger(LogonDAOImpl.class);
I am deploying the application on
tomcat 6.x and I made sure that I have log4j.dtd, log4j.xml & log4j.prop file in the classpath WEB-Inf/classes/
It is creating the log files in the location I specified but it is never writing into these files.
Am I missing something or are there any configuration that are specific to tomcat? please help!!
thanks in advance...