Mohit, >From the Tomcat documentation ( http://tomcat.apache.org/tomcat-5.5-doc/logging.html):-
The logging.properties shipped with JDK is set to INFO. This file can be located at $JAVA_HOME/jre/lib Thus your default logging level in catalina.out is set to INFO. In order to override this, either configure Log4j or java.util.logging in your Tomcat container. Example, if you choose to configure Log4j, you have to:- 1. Create a file called log4j.properties as per your needs and save it into common/classes. Obviously in your case you would set the Root Logger to ERROR and specific packages as per your needs to lower logging levels. The example mentioned in the documentation refers to a file named tomcat.log. If you use the example as is, you would stop getting any logging messages in catalina.out, and start getting the same messages if tomcat.log instead. If you are keen to use catalina.out use the following line: log4j.appender.R.File=${catalina.home}/logs/catalina.out instead of log4j.appender.R.File=${catalina.home}/logs/tomcat.log 2. Download Log4J <http://logging.apache.org/log4j> (v1.2 or later) and place the log4j jar in $CATALINA_HOME/common/lib. 3. Download Commons Logging<http://commons.apache.org/downloads/download_logging.cgi> and place the commons-logging-x.y.z.jar (not commons-logging-api-x.y.z.jar) in $CATALINA_HOME/common/lib with the log4j jar. 4. Start Tomcat Corresponding steps are available if you want to use java.util.logging instead of Log4j. I have used the above configurations and they do work as expected! All the best! Cheers Anurag ------------------------------------------------------------------ Anurag Kapur Associate - Technology, Sapient Corporation India. http://www.linkedin.com/in/anuragkapur ------------------------------------------------------------------ On Sun, Feb 15, 2009 at 4:57 PM, Mohit Anchlia <mohitanch...@gmail.com>wrote: > Thanks. There doesn't seem to be mention of catalina.out. Only one > line that it has referes to other catalina.<date> file that tomcat > creates > > 1catalina.org.apache.juli.FileHandler.prefix = catalina. > > > > On Sun, Feb 15, 2009 at 6:54 AM, Christopher Schultz > <ch...@christopherschultz.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Mohit, > > > > On 2/13/2009 1:13 PM, Mohit Anchlia wrote: > >> Is there a way to just log SEVERE or ERROR messages to catalina.out? > > > > Yes. > > > > http://tomcat.apache.org/tomcat-6.0-doc/logging.html > > > > Skip the log4j-specific parts unless you are using log4j. > > > > You really need to see what documentation already exists before you ask > > these questions. > > > > - -chris > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.9 (MingW32) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iEYEARECAAYFAkmYLLQACgkQ9CaO5/Lv0PBPFACeOhQy3oIkKcYenedw16/Ux+EH > > lFMAnRjg/YUzYAK62CLsoT5+ziAhjrlr > > =TGhI > > -----END PGP SIGNATURE----- > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >