Partioning logs in Tomcat by virtual host and app

Posted by Robert Munteanu on Server Fault See other posts from Server Fault or by Robert Munteanu
Published on 2009-08-10T08:10:15Z Indexed on 2010/03/14 21:05 UTC
Read the original article Hit count: 295

Filed under:
|

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

${tomcat.home}/logs/vhost-app-date.log

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.

© Server Fault or respective owner

Related posts about tomcat

Related posts about log-files