You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by reno <re...@free.fr> on 2007/03/27 11:33:48 UTC
RE: How do you change default log level from INFO to ERROR in
Tomcat 5.0.28?
Le mardi 27 mars 2007 à 10:29 +0200, Mirou, Antoine a écrit :
> Hello,
>
>
> > I just upgraded from 4.1.29 to 5.0.28, and now when I startup the
> Tomcat
> > Server, I see 15 some odd INFO messages being printed to the console
> > window. I only want a couple system.outs that inform me that the
> Tomcat
> > Server has started. How can I get rid of these messages?
>
> Try to modify the logging.properties file in
> $JAVA_HOME/jre/lib/logging.properties
>
> You can also define your own file and give it to the jvm by the argument
> (in JAVA_OPTS, for example) :
> -Djava.util.logging.config.file=/path/to/logging.properties
>
> Change the log level in that file from "INFO" to "SEVERE", for example.
>
> Regards,
> Antoine
>
not sure that tomcat using logging from java. i think that 5.0.28 using
log4j
check out if <tomcat_folder>/shared/lib/log4j.properties. if it exists,
check out log4j manual to understand
how to use lo4gj stuff. here is some few helpful links:
(the examples are used for specific apps but you can easely use them for
tomcat)
http://www.vipan.com/htdocs/log4jhelp.html
http://logging.apache.org/log4j/docs/api/index.html
regards
F.
>
> Afin de preserver l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite.
>
> Please consider the environment before printing this mail.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org