I had a previous post in the applications folder but as I think the issue is related to
Tomcat configuration and know how this is prob a better place for this more detailed post.
Been looking at the log4j documentation in relation to Tomcat and it seems it should be straight forward to have Tomcat use Log4J with my own configuration.
I have created a Log4J.xml file and everything works fine until I deploy the app to Tomcat.
I can't tell where to put this xml file along with the dtd file ( or do I even need the dtd in Tomcat 7.0? )
Do I need to modify any of the Tomcat startup scripts to tell it about my own xml file for Log4J?
Even if I could get things to work using the Tomcat startup scripts that would do for now. (I would eventually like to get it to work with Log4J when I launch Tomcat from eclipse )
I want to log all Tomcats internal logs and my own Apps logs to the same file.
However, the file does not get created when I start the App and call a few beans.
Here is the xml file I use, just hard coded the file name to remove any doubt as to where the file might go.