You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Miller <Jo...@Corticon.com> on 2007/03/27 02:19:38 UTC
How do you change default log level from INFO to ERROR in Tomcat 5.0.28?
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?
In 4.1.29, the console prints out:
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
In 5.0.28, the console prints out:
Mar 26, 2007 4:32:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 26, 2007 4:32:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 954 ms
Mar 26, 2007 4:32:47 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 26, 2007 4:32:47 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Mar 26, 2007 4:32:47 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 26, 2007 4:32:47 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 26, 2007 4:32:47 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Corticon\Apache\conf\Catalina\localhost\admin.xml
Mar 26, 2007 4:32:48 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 26, 2007 4:32:48 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 26, 2007 4:32:48 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Mar 26, 2007 4:32:49 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Corticon\Apache\conf\Catalina\localhost\axis.xml
Mar 26, 2007 4:32:49 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Corticon\Apache\conf\Catalina\localhost\manager.xml
Mar 26, 2007 4:32:49 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Corticon\Apache\conf\Catalina\localhost\ROOT.xml
Mar 26, 2007 4:32:49 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Corticon\Apache\conf\Catalina\localhost\tomcat-docs.xml
Mar 26, 2007 4:32:49 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 26, 2007 4:32:50 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 26, 2007 4:32:50 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=C:\Program
Files\Corticon\Apache\conf\jk2.properties
Mar 26, 2007 4:32:50 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2718 ms
RE: How do you change default log level from INFO to ERROR in
Tomcat 5.0.28?
Posted by reno <re...@free.fr>.
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
RE: How do you change default log level from INFO to ERROR in Tomcat 5.0.28?
Posted by "Mirou, Antoine" <an...@caissedesdepots.fr>.
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
Afin de preserver l'environnement, merci de n'imprimer ce courriel qu'en cas de necessite.
Please consider the environment before printing this mail.