You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Jenny <el...@yahoo.com> on 2005/12/27 13:40:09 UTC
Logging problem in Tomcat5.0
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
Re: Logging problem in Tomcat5.0
Posted by Jacob Kjome <ho...@visi.com>.
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