Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I instruct Tomcat to hold log files for each virtual host and app separately, similar to:


This is under the assumption that I configure all virtual hosts to log to the console, and they are unaware of the virtual host and application name they're running under.

share|improve this question

take a look at this as a starting point:

It seems you have to change to log4j and configure it there.

If you only want different access logs it is really straight forward:

I have not tried it with virtual hosts by myself, I use different instances.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.