File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 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: = ${whatVariableToUse?}/logs

Any one any idea ?

Thanks already.

I agree. Here's the link:
subject: Define location of context logfile
It's not a secret anymore!