wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Define location of context logfile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Define location of context logfile" Watch "Define location of context logfile" New topic
Author

Define location of context logfile

Stefan Geelen
Ranch Hand

Joined: Nov 19, 2001
Posts: 49
Hi,

I made a new context (webapp) in our Tomcat enviroment (version 6.x).

In the WEB-INF/classes folder, I made a logging.properties file, with following content:



Now I would like to have the directory pointing dynamically to the context's log folder.

Question: Ho do I do that ?

I could not find a variable that point to the context's folder.

Can I use a variable defined by Tomcat so I can define it as:

org.apache.juli.FileHandler.directory = ${whatVariableToUse?}/logs

Any one any idea ?

Thanks already.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Define location of context logfile
 
Similar Threads
Logging in Tomcat 5
Is TOMCAT'S JULI logging levels broken on Linux?
tomcat webapp logging
Per-Webapp logging with java.util.logging
Tomcat configuration for Velocity Project