Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have established 2 domains on my tomcat 6 running on CentOS. But now my logging is broken. All logs except catalina.out are empty. I would like to have one log for each domain. I found a lot of similar tasks in the web but no solution till now. I would prefer to have the most simple solution. Here is my server.xml:

<Engine name="Catalina" defaultHost=...>
  <Host name=""  appBase="/home/domain1/tomcat/webapps"
  <Host name=""  appBase="/home/domain2/tomcat/webapps"
share|improve this question

I found it, it's quite easy: Just use the "valve" element inside the "host" element: This way you can have one standard log for each domain.

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.