You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/06/23 17:53:54 UTC

svn commit: r957255 - /click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java

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 {