jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Define location of context logfile" Watch "Define location of context logfile" New topic

Define location of context logfile

Stefan Geelen
Ranch Hand

Joined: Nov 19, 2001
Posts: 49

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
It's not a secret anymore!