Image

Imagecepcion wrote in Imagejava_dev

Struts/log4j configuration file

I'm developing an webapp using Struts & Hibernate, and I would really like to disable all the INFO messages that scroll by on the console. I've read over the docs for both and I understand that they use either Commons Logging or Log4J, and the config file should be somewhere in the classpath.

My question is, given my web app is called cap, stored under $TOMCATHOME/webapps/cap, where should log4j.properties go? I've tried $TOMCATHOME/webapps/cap/WEB-INF/classes and $TOMCATHOME/webapps/cap/WEB-INF with no luck.

/obligatory please help!