Author: julien_viet
Date: 2010-03-23 06:52:21 -0400 (Tue, 23 Mar 2010)
New Revision: 2347
Added:
portal/trunk/server/tomcat/patch/src/main/tomcat/bin/commons-logging.properties
Modified:
portal/trunk/server/tomcat/patch/src/main/tomcat/conf/logging.properties
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalController.java
Log:
GTNPORTAL-943: Improve logging configuration in Tomcat
Added: portal/trunk/server/tomcat/patch/src/main/tomcat/bin/commons-logging.properties
===================================================================
--- portal/trunk/server/tomcat/patch/src/main/tomcat/bin/commons-logging.properties
(rev 0)
+++
portal/trunk/server/tomcat/patch/src/main/tomcat/bin/commons-logging.properties 2010-03-23
10:52:21 UTC (rev 2347)
@@ -0,0 +1,3 @@
+# Configure commons logging to use JDK logger
+org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
Modified: portal/trunk/server/tomcat/patch/src/main/tomcat/conf/logging.properties
===================================================================
--- portal/trunk/server/tomcat/patch/src/main/tomcat/conf/logging.properties 2010-03-22
21:57:56 UTC (rev 2346)
+++ portal/trunk/server/tomcat/patch/src/main/tomcat/conf/logging.properties 2010-03-23
10:52:21 UTC (rev 2347)
@@ -78,11 +78,34 @@
############################################################
org.exoplatform.level = INFO
-org.exoplatform.handlers = 6gatein.org.apache.juli.FileHandler
+org.exoplatform.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
org.gatein.level = INFO
-org.gatein.handlers = 6gatein.org.apache.juli.FileHandler
+org.gatein.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
org.chromattic.level = INFO
-org.chromattic.handlers = 6gatein.org.apache.juli.FileHandler
+org.chromattic.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+jcr.level = INFO
+jcr.handlers = java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+ws.level = INFO
+ws.handlers = java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+XMLResolvingServiceImpl.level = INFO
+XMLResolvingServiceImpl.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+TRAXTemplatesServiceImpl.level = INFO
+TRAXTemplatesServiceImpl.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+org.hibernate.level = INFO
+org.hibernate.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+com.arjuna.level = INFO
+com.arjuna.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+org.jboss.level = INFO
+org.jboss.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
+
+org.apache.shindig.level = INFO
+org.apache.shindig.handlers =
java.util.logging.ConsoleHandler,6gatein.org.apache.juli.FileHandler
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalController.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalController.java 2010-03-22
21:57:56 UTC (rev 2346)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalController.java 2010-03-23
10:52:21 UTC (rev 2347)
@@ -24,9 +24,9 @@
import org.exoplatform.container.RootContainer;
import org.exoplatform.container.RootContainer.PortalContainerPostCreateTask;
import org.exoplatform.container.web.AbstractHttpServlet;
-import org.exoplatform.services.log.ExoLogger;
-import org.exoplatform.services.log.Log;
import org.exoplatform.web.WebAppController;
+import org.gatein.common.logging.Logger;
+import org.gatein.common.logging.LoggerFactory;
import java.io.IOException;
import java.util.Enumeration;
@@ -50,7 +50,7 @@
public class PortalController extends AbstractHttpServlet
{
- protected static Log log = ExoLogger.getLogger("portal:PortalController");
+ protected static Logger log =
LoggerFactory.getLogger("org.gatein.portal.application.PortalController");
/**
* The onInit() method is used to prepare the portal to receive requests.
@@ -82,7 +82,7 @@
}
catch (Throwable t)
{
- log.fatal("The WebAppController could not be initialized for the portal
'" + portalContainer.getName() + "'",
+ log.error("The WebAppController could not be initialized for the portal
'" + portalContainer.getName() + "'",
t);
}
finally
Show replies by date