Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Define location of context logfile

 
Stefan Geelen
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic