Don't call silent by default. Add the life-cycle listener to the silenced loggers.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 22 Jun 2009 11:19:18 +0000 (11:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 22 Jun 2009 11:19:18 +0000 (11:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@787202 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/startup/Tomcat.java

index e86678d..b4fc2ef 100644 (file)
@@ -246,7 +246,6 @@ public class Tomcat {
      * Initialize and start the server.
      */
     public void start() throws Exception {
-        setSilent();
         getServer();
         getConnector();
         server.initialize();
@@ -505,8 +504,14 @@ public class Tomcat {
         "org.apache.catalina.core.StandardEngine",
         "org.apache.catalina.startup.ContextConfig",
         "org.apache.catalina.core.ApplicationContext",
+        "org.apache.catalina.core.AprLifecycleListener"
     };
     
+    /**
+     * Sets the log level to WARN for the loggers that log information on
+     * Tomcat start up. This prevents the usual startup information being
+     * logged to the console.
+     */
     public void setSilent() {
         for (String s : silences) {
             Logger.getLogger(s).setLevel(Level.WARNING);