Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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="domain1.xy.com"  appBase="/home/domain1/tomcat/webapps"
        ...
  </Host>
  <Host name="domain2.xy.com"  appBase="/home/domain2/tomcat/webapps"
        ...
  </Host>
</Engine>
share|improve this question

1 Answer 1

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

 
discard

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.