TomcatExpert

logging

Ask the Experts : Application logging locations with multiple Apache Tomcat instances?

I am about to install an extra tomcat instance on our test server

- I like to know how you configure the location of your application log files? Where do you put these and how to configure these?

I am thinking about the following on our linux machine: 
Have one central app log location: /applog/ that contains sub dir's demo and test:

/applog/demo
/applog/test
 

asked by edbras

question

Application logging is not something that is tied to Apache Tomcat itself. Apache Tomcat has no knowledge about where these logs go, how they are written and how they are configured. It would require knowledge about the application logging framework to understand how to configure this in your environment.

As for the catalina.home variable, this points to Apache Tomcat's binaries. There is another variable, catalina.base, this points to your actual Apache Tomcat's instance, and that is the variable you could use.

It would not be good for you to rename these variables, as Apache Tomcat itself depends on them.

answered by fhanik on June 16, 2011 11:32 AM

Read More

answer

0 comments   |  

0
Rating
  |  

Developers | logging

Syndicate content