tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r735618 - in /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb: OpenEJB.java util/Logger.java
Date Mon, 19 Jan 2009 06:45:46 GMT
Author: dblevins
Date: Sun Jan 18 22:45:46 2009
New Revision: 735618

URL: http://svn.apache.org/viewvc?rev=735618&view=rev
Log:
Reinitialize logging so that logging overrides can be configured as InitialContext parameter
overrides

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/OpenEJB.java
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/util/Logger.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/OpenEJB.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/OpenEJB.java?rev=735618&r1=735617&r2=735618&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/OpenEJB.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/OpenEJB.java
Sun Jan 18 22:45:46 2009
@@ -66,6 +66,7 @@
         public Instance(Properties initProps, ApplicationServer appServer) throws OpenEJBException
{
             initialized = new Exception("Initialized at "+new Date()).fillInStackTrace();
 
+            Logger.configure();
             Logger logger = Logger.getInstance(LogCategory.OPENEJB_STARTUP, "org.apache.openejb.util.resources");
 
             try {

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/util/Logger.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/util/Logger.java?rev=735618&r1=735617&r2=735618&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/util/Logger.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/util/Logger.java
Sun Jan 18 22:45:46 2009
@@ -26,6 +26,10 @@
     private static LogStreamFactory logStreamFactory;
 
     static {
+        configure();
+    }
+
+    public static void configure() {
         String factoryName = System.getProperty("openejb.log.factory");
         Class<?> factoryClass = null;
         if (factoryName != null) {



Mime
View raw message