I've not used log4j in anger before. Now I am, and I must say; it rocks. simple and powerful.
One question, though. Where should you put your log4j.properties
file? The usual place seems to be in your /WEB-INF/classes
directory, but I have two problems with that.
Firstly, it's not a damn class. OK, OK, I should probably just get over that one - /WEB-INF/classes
is your basic runtime class path, whatever it may be called.
Secondly, and more seriously; if you ship your application as a WAR file, you can't get at it to edit it, which is a real problem.
Any suggestions?
Posted to Java by Simon Brunning at February 05, 2004 12:45 PM