I'm using Tomcat 6.0.24 and log4j 1.2.16. Nothing is appearing in my log4j logs as defined by my properties files and I was looking to get some insight as to why. Here is my log4j.properties, located in my war file's WEB-INF/classes directory ...
I'm creating the logger and using it in the code below. The System.err.println statement is printed in my catalina.out file, so I know the branch of code is being invoked ...
Any help as to why nothing is appearing in my logs is appreciated, - Dave
posted 4 years ago
Where have you kept your log4j.properties. Also you need to initiate log4j. General way to do it initialising in a servlet which is configured in web.xml. See below link