Logging to different files using Tomcat4
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, August 5, 2004 11:46 PM


How Can different log files be specified (the System.out to be routed to different files ) for request from different domains or applications installed with tomcat4

Re: Logging to different files using Tomcat4

Posted By:   super_zhang  
Posted On:   Monday, August 9, 2004 09:52 PM

you can change the file in /conf, ie. server.xml to achieve this.





prefix="localhost_appwww_log." suffix=".txt"
timestamp="true"/>




change the attribute "prefix" of the element "Logger" into your specific file name and the "suffix" into file extension.


by doing this, you can assign each context a log file as you wish.

About | Sitemap | Contact