Author: markt
Date: Mon Jun 22 11:19:18 2009
New Revision: 787202
URL: http://svn.apache.org/viewvc?rev=787202&view=rev
Log:
Don't call silent by default. Add the life-cycle listener to the silenced
loggers.
Modified:
tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java
Modified: tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java?rev=787202&r1=787201&r2=787202&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java Mon Jun 22
11:19:18 2009
@@ -246,7 +246,6 @@
* Initialize and start the server.
*/
public void start() throws Exception {
- setSilent();
getServer();
getConnector();
server.initialize();
@@ -505,8 +504,14 @@
"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);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]