[jboss-cvs] JBossAS SVN: r81882 - projects/aop/trunk/aop/src/main/org/jboss/aop/util/logging.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 1 03:53:33 EST 2008


Author: stalep
Date: 2008-12-01 03:53:32 -0500 (Mon, 01 Dec 2008)
New Revision: 81882

Modified:
   projects/aop/trunk/aop/src/main/org/jboss/aop/util/logging/AOPLogger.java
Log:
Set back loggerplugin to nulllogger to prevent aoplogger to be used all over


Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/util/logging/AOPLogger.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/util/logging/AOPLogger.java	2008-12-01 04:49:53 UTC (rev 81881)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/util/logging/AOPLogger.java	2008-12-01 08:53:32 UTC (rev 81882)
@@ -64,6 +64,8 @@
       {
          org.jboss.logging.Logger.setPluginClassName(SystemOutLoggerPlugin.class.getName());
          log = org.jboss.logging.Logger.getLogger(clazz);
+         // setting the logger back to NullLogger since we only want jboss classes to use AOPLogger
+         org.jboss.logging.Logger.setPluginClassName(org.jboss.logging.NullLoggerPlugin.class.getName());
       }
       
       logger = log;
@@ -146,5 +148,4 @@
       logger.trace(message, t);
    }
    
-
 }




More information about the jboss-cvs-commits mailing list