Hi,
I am using log4j in my web application deployed on
Tomcat server (Unix OS). As soon as I change the ROOT logger level to DEBUG (in log4j.xml), I am also able to see the Tomcat logs along with my web application logs in the same log file specified in the configuration file. Any ideas on this behavior?
My guess is that tomcat also uses log4j for logging and by changing the log level of the ROOT logger, it is inheriting the same.
Here's the log4j configuration file:
I am using the following code to get the particular logger:
Thanks in advance.
Ankit