Author: gsim
Date: Thu Jun 14 01:51:39 2007
New Revision: 547178

URL: http://svn.apache.org/viewvc?view=rev&rev=547178
Log:
Converted templates to generate classes using slf4j rather than log4j inline 
with changes applied in rev 546190.


Modified:
    incubator/qpid/branches/M2/gentools/templ.java/MethodRegistryClass.tmpl
    
incubator/qpid/branches/M2/gentools/templ.java/PropertyContentHeaderClass.tmpl

Modified: 
incubator/qpid/branches/M2/gentools/templ.java/MethodRegistryClass.tmpl
URL: 
http://svn.apache.org/viewvc/incubator/qpid/branches/M2/gentools/templ.java/MethodRegistryClass.tmpl?view=diff&rev=547178&r1=547177&r2=547178
==============================================================================
--- incubator/qpid/branches/M2/gentools/templ.java/MethodRegistryClass.tmpl 
(original)
+++ incubator/qpid/branches/M2/gentools/templ.java/MethodRegistryClass.tmpl Thu 
Jun 14 01:51:39 2007
@@ -29,7 +29,8 @@
 package org.apache.qpid.framing;
 
 import java.util.HashMap;
-import org.apache.log4j.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.apache.mina.common.ByteBuffer;
 
 public class MainRegistry
@@ -37,7 +38,7 @@
        private static final HashMap<Long, AMQMethodBodyInstanceFactory> 
classIDMethodIDVersionBodyMap = new HashMap<Long, 
AMQMethodBodyInstanceFactory>();
 
        
-    private static final Logger _log = Logger.getLogger(MainRegistry.class);
+    private static final Logger _log = 
LoggerFactory.getLogger(MainRegistry.class);
        
 
     private static final int DEFAULT_MINOR_VERSION_COUNT = 10;

Modified: 
incubator/qpid/branches/M2/gentools/templ.java/PropertyContentHeaderClass.tmpl
URL: 
http://svn.apache.org/viewvc/incubator/qpid/branches/M2/gentools/templ.java/PropertyContentHeaderClass.tmpl?view=diff&rev=547178&r1=547177&r2=547178
==============================================================================
--- 
incubator/qpid/branches/M2/gentools/templ.java/PropertyContentHeaderClass.tmpl 
(original)
+++ 
incubator/qpid/branches/M2/gentools/templ.java/PropertyContentHeaderClass.tmpl 
Thu Jun 14 01:51:39 2007
@@ -28,12 +28,13 @@
  
 package org.apache.qpid.framing;
 
-import org.apache.log4j.Logger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.apache.mina.common.ByteBuffer;
 
 public class ${CLASS}ContentHeaderProperties implements ContentHeaderProperties
 {
-    private static final Logger logger = 
Logger.getLogger(BasicContentHeaderProperties.class);
+    private static final Logger logger = 
LoggerFactory.getLogger(BasicContentHeaderProperties.class);
 
     /**
      * We store the encoded form when we decode the content header so that if 
we need to


Reply via email to