This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design forum!
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!