click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r957255 - /click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Date Wed, 23 Jun 2010 15:53:54 GMT
Author: sabob
Date: Wed Jun 23 15:53:53 2010
New Revision: 957255

URL: http://svn.apache.org/viewvc?rev=957255&view=rev
Log:
moved logging till after mode is loaded so logger is properly configured

Modified:
    click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java

Modified: click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=957255&r1=957254&r2=957255&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Wed Jun
23 15:53:53 2010
@@ -231,6 +231,14 @@ public class XmlConfigService implements
             // Load the application mode and set the logger levels
             loadMode(rootElm);
 
+            if (logService.isInfoEnabled()) {
+                logService.info("***  Initializing Click " + ClickUtils.getClickVersion()
+                    + " in " + getApplicationMode() + " mode  ***");
+
+                String msg = "initialized LogService: " + logService.getClass().getName();
+                getLogService().info(msg);
+            }
+
             // Deploy click resources
             deployFiles(rootElm);
 
@@ -1561,16 +1569,11 @@ public class XmlConfigService implements
 
                 Ognl.setValue(name, logService, value);
             }
+        } else {
+            logService = new ConsoleLogService();
         }
 
         logService.onInit(getServletContext());
-
-        logService.info("***  Initializing Click " + ClickUtils.getClickVersion()
-            + "  ***");
-
-        String msg = "initialized LogService: "
-            + logService.getClass().getName();
-        getLogService().info(msg);
     }
 
     private void loadMessagesMapService(Element rootElm) throws Exception {



Mime
View raw message