2 Replies Latest reply on Mar 23, 2011 5:09 PM by kwutzke

    Tomcat 6 server config: alter logging level for startup?

    kwutzke

      Hello,

       

      when Tomcat is started up it outputs INFO-level log entries to the console like

       

      23.03.2011 12:51:58 org.apache.catalina.core.AprLifecycleListener init

      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\...

      23.03.2011 12:51:58 org.apache.tomcat.util.digester.SetPropertiesRule begin

      WARN: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:bbstats' did not find a matching property.

      23.03.2011 12:51:58 org.apache.coyote.http11.Http11Protocol init

      INFO: Initializing Coyote HTTP/1.1 on http-8081

      23.03.2011 12:51:58 org.apache.catalina.startup.Catalina load

      INFO: Initialization processed in 746 ms

      23.03.2011 12:51:58 org.apache.catalina.core.StandardService start

      INFO: Starting service Catalina

      23.03.2011 12:51:58 org.apache.catalina.core.StandardEngine start

      INFO: Starting Servlet Engine: Apache Tomcat/6.0.26

       

      How do I suppress INFO level entries and show only WARNING level entries?

       

      Setting

       

      java.util.logging.ConsoleHandler.level = WARNING

       

      in tomcat/conf/logging.properties doesn't work. The JBT server config doesn't seem to pick up that file, even though I set it to the Tomcat installation path. Where can I alter the logging level for the ConsoleHandler?

       

      The overall question is whether I need this at all... I'm just trying to reduce localhost server startup time because I know the prints are slow. Is it worth the effort or should I ignore it?

       

      Karsten