File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes redirect logs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "redirect logs" Watch "redirect logs" New topic
Author

redirect logs

veera mani
Greenhorn

Joined: Feb 17, 2008
Posts: 2
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

Joined: Jun 22, 2001
Posts: 140
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 ]

Vikas Aggarwal

Founder @
Leads and Deals Limited

www.LeadsAndDeals.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redirect logs