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

redirect logs

veera mani

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

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

How to set that ?

Vikas Aggarwal
Ranch Hand

Joined: Jun 22, 2001
Posts: 140

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

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 files in conf dir.

Hope it helps.
[ April 02, 2008: Message edited by: Vikas Aggarwal ]

Vikas Aggarwal

Founder @
Leads and Deals Limited
I agree. Here's the link:
subject: redirect logs
It's not a secret anymore!