[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: Logging problem in Tomcat5.0
From:       Jacob Kjome <hoju () visi ! com>
Date:       2005-12-27 16:56:09
Message-ID: 5.2.1.1.0.20051227105212.03566290 () 127 ! 0 ! 0 ! 1
[Download RAW message or body]


This is more a matter for the Tomcat docs.  Tomcat does not use Log4j.  It 
uses commons-logging.  Furthermore, it uses commons-logging-api.jar which 
does not recognize Log4j as an implementation that it wraps.  I'm pretty 
sure Tomcat docs have pointers on logging configuration.  Note that 
Tomcat-5.0 and 5.5 have very different logging setups.  5.5's is much more 
flexible, IMO.  In any case, this is a question for the Tomcat user list or 
you can simply find your answer in their docs.

Jake

At 12:40 PM 12/27/2005 +0000, you wrote:
 >I am using Tomcat5.0 I have a question about logging in Tomcat. I configured
 >server.xml to point context logging to specific file name in logs directory
 >something like:
 >   <Context path="/mydir" docBase="mydir" debug="0"
 >    reloadable="false" crossContext="false">
 >    <Logger className="org.apache.catalina.logger.FileLogger"
 >    prefix="mydir_log." suffix=".txt" logVerbosityLevel="WARNING"
 >    timestamp="true"/> </Context>
 >
 >I want my System.out.println messages printed from this context go to this
 >file,
 >but it is not the case, they go to general catalina.out.
 >
 >Also does anybody knows how to stop [INFO] level messages being posted to
 >catalina.out ????? Any sort of help will be appreciated.......
 >
 >Thxs
 >
 >
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
 >For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic