The branch, master has been updated
       via  50f843f7507c7a206046205d742fe7bd4e305581 (commit)
      from  ea2799ba4330b06eba018ae8037c8e15a318e3d8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=50f843f7507c7a206046205d742fe7bd4e305581
http://github.com/ceki/slf4j/commit/50f843f7507c7a206046205d742fe7bd4e305581

commit 50f843f7507c7a206046205d742fe7bd4e305581
Author: Ceki Gulcu <[email protected]>
Date:   Tue Sep 1 19:48:11 2009 +0200

    - started work on localization support (ongoing work)

diff --git a/pom.xml b/pom.xml
index 2a81ab7..95d7185 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,12 @@
         <version>1.2.14</version>
       </dependency>
 
+    <dependency>
+      <groupId>ch.qos.cal10n</groupId>
+      <artifactId>cal10n-api</artifactId>
+      <version>0.5.1</version>
+    </dependency>              
+
    </dependencies>
  </dependencyManagement>
 
diff --git a/slf4j-ext/pom.xml b/slf4j-ext/pom.xml
index 39ed5d5..2568961 100644
--- a/slf4j-ext/pom.xml
+++ b/slf4j-ext/pom.xml
@@ -30,6 +30,10 @@
       <scope>test</scope>
     </dependency>              
     <dependency>
+      <groupId>ch.qos.cal10n</groupId>
+      <artifactId>cal10n-api</artifactId>
+    </dependency>              
+    <dependency>
       <groupId>javassist</groupId>
       <artifactId>javassist</artifactId>
       <version>3.4.GA</version>
diff --git a/slf4j-ext/src/main/java/org/slf4j/cal10n/LLogger.java 
b/slf4j-ext/src/main/java/org/slf4j/cal10n/LLogger.java
new file mode 100644
index 0000000..08917d8
--- /dev/null
+++ b/slf4j-ext/src/main/java/org/slf4j/cal10n/LLogger.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) 2004-2009 QOS.ch All rights reserved.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to 
deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS  IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
+ */
+package org.slf4j.cal10n;
+
+import org.slf4j.Logger;
+import org.slf4j.ext.LoggerWrapper;
+
+public class LLogger extends LoggerWrapper implements Logger {
+
+  private static final String FQCN = LLogger.class.getName();
+  
+  public LLogger(Logger logger) {
+    super(logger, FQCN);
+  }
+  
+  void debug(Enum<?> e, Object... args) {
+      
+  }
+  
+
+}
diff --git a/slf4j-ext/src/main/java/org/slf4j/cal10n/LLoggerFactory.java 
b/slf4j-ext/src/main/java/org/slf4j/cal10n/LLoggerFactory.java
new file mode 100644
index 0000000..5ba4f7b
--- /dev/null
+++ b/slf4j-ext/src/main/java/org/slf4j/cal10n/LLoggerFactory.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2004-2009 QOS.ch All rights reserved.
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to 
deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS  IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+ * SOFTWARE.
+ */
+package org.slf4j.cal10n;
+
+import org.slf4j.LoggerFactory;
+
+public class LLoggerFactory {
+
+  /**
+   * Get an LLogger instance by name.
+   * 
+   * @param name
+   * @return
+   */
+  public static LLogger getLLogger(String name) {
+    return new LLogger(LoggerFactory.getLogger(name));
+  }
+
+  /**
+   * Get a new LLogger instance by class. The returned XLogger
+   * will be named after the class.
+   * 
+   * @param clazz
+   * @return
+   */
+  @SuppressWarnings("unchecked")
+  public static LLogger getLLogger(Class clazz) {
+    return getLLogger(clazz.getName());
+  }
+}

-----------------------------------------------------------------------

Summary of changes:
 pom.xml                                            |    6 ++
 slf4j-ext/pom.xml                                  |    4 ++
 .../src/main/java/org/slf4j/cal10n/LLogger.java    |   40 ++++++++++++++++
 .../main/java/org/slf4j/cal10n/LLoggerFactory.java |   49 ++++++++++++++++++++
 4 files changed, 99 insertions(+), 0 deletions(-)
 create mode 100644 slf4j-ext/src/main/java/org/slf4j/cal10n/LLogger.java
 create mode 100644 slf4j-ext/src/main/java/org/slf4j/cal10n/LLoggerFactory.java


hooks/post-receive
-- 
SLF4J: Simple Logging Facade for Java
_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to