diff options
| author | Gordon Sim <gsim@apache.org> | 2007-06-14 08:51:39 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-06-14 08:51:39 +0000 |
| commit | dd7fbb765c7fe4a5ff1c0506bd296d553282b7a9 (patch) | |
| tree | 9ca15edb13bac62839fa111ed2dc9371af25d1a2 /gentools | |
| parent | ffdb11797e0dc4cb2cfa8d1dee161569935bebb6 (diff) | |
| download | qpid-python-dd7fbb765c7fe4a5ff1c0506bd296d553282b7a9.tar.gz | |
Converted templates to generate classes using slf4j rather than log4j inline with changes applied in rev 546190.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@547178 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gentools')
| -rw-r--r-- | gentools/templ.java/MethodRegistryClass.tmpl | 5 | ||||
| -rw-r--r-- | gentools/templ.java/PropertyContentHeaderClass.tmpl | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gentools/templ.java/MethodRegistryClass.tmpl b/gentools/templ.java/MethodRegistryClass.tmpl index 388a1a936f..01e440e209 100644 --- a/gentools/templ.java/MethodRegistryClass.tmpl +++ b/gentools/templ.java/MethodRegistryClass.tmpl @@ -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 @@ public class MainRegistry 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; diff --git a/gentools/templ.java/PropertyContentHeaderClass.tmpl b/gentools/templ.java/PropertyContentHeaderClass.tmpl index 3c147cf6b6..ab6406b1fe 100644 --- a/gentools/templ.java/PropertyContentHeaderClass.tmpl +++ b/gentools/templ.java/PropertyContentHeaderClass.tmpl @@ -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 |
