Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect logs

 
veera mani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,


I want the tomcat logs on linux to be written to tomcat-4.1.30/logs/debs.log. How to that?
I just installed it and started it, but i find the following files inside logs directory.
catalina.out localhost_admin_log.2008-04-02.txt localhost_log.2008-04-02.txt
localhost_examples_log.2008-04-02.txt

I want the logs to be in debs.log and the tomcat-related issues with catalina.out.

How to set that ?


Thanks
 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can probably do that easily using log4j with tomcat. See below:

http://tomcat.apache.org/tomcat-5.5-doc/logging.html

This page has steps to control and configure tomcat log files.

By default tomcat does not use log4j but uses commons logging. You can change commons logging behaviour as well by changing catalina.properties files in conf dir.

Hope it helps.
[ April 02, 2008: Message edited by: Vikas Aggarwal ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic