• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

redirect logs

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic