Darren Hall asked:
> I've included the log4j.jar in my WEB-INF/lib directory and 
> created a log4j.xml file based on an example I found online 
> (rather then a log4j.properties file). The application 
> deploys error free and executes - however my log files are 
> not created.
> 
> I can think of two reasons this could be happening:
> 1) Log4j is not creating the "log" directory, thus it can't 
> create the log file; or

The directory needs to exist.  Log4j won't create it for you.

Do you see your log output on the console?


> Below is the log4j.xml properties file. I'm using a relative 
> path to specify a directory for the log files (i.e. 
> "log/uwaf-event.log"). Given that I'm using Tomcat 5.5 as my 
> app server - where will it try to create my log files? In my 
> webapps/<myapp> folder, or in the <Catalina_home>/bin directory?

It will probably be relative to the current working directory where you
start Tomcat.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to