[slf4j-dev] [GIT] SLF4J: Simple Logging Facade for Java branch master updated. v_1.7.2-2-g9e1edcf

Gitbot git-noreply at pixie.qos.ch
Thu Nov 8 15:57:57 CET 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SLF4J: Simple Logging Facade for Java".

The branch, master has been updated
       via  9e1edcf07bc805da82a7a7c1d2ce2e723d1fa4ce (commit)
       via  3f776eb758fd59429bb654f594d9c8feb2d9574c (commit)
      from  c06e41788dcd9ce06602d2709ce34261adff4ce9 (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=9e1edcf07bc805da82a7a7c1d2ce2e723d1fa4ce
http://github.com/ceki/slf4j/commit/9e1edcf07bc805da82a7a7c1d2ce2e723d1fa4ce

commit 9e1edcf07bc805da82a7a7c1d2ce2e723d1fa4ce
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Thu Nov 8 15:57:20 2012 +0100

    blurb on bug 280

diff --git a/slf4j-site/src/site/pages/news.html b/slf4j-site/src/site/pages/news.html
index 1b15b96..09bec59 100644
--- a/slf4j-site/src/site/pages/news.html
+++ b/slf4j-site/src/site/pages/news.html
@@ -29,6 +29,15 @@
 
    <hr noshade="noshade" size="1"/>
 
+   <h3> November, 2012 - Release of SLF4J 1.7.3</h3>
+
+   <p>Added missing methods and classes in log4j-over-slf4j module for
+   Velocity compatibility.  This isssue was reported in <a
+   href="http://bugzilla.slf4j.org/show_bug.cgi?id=280">bug 280</a> by
+   Thomas Mortagne.</p>
+
+   <hr noshade="noshade" size="1"/>
+
    <h3>11th of October, 2012 - Release of SLF4J 1.7.2</h3>
 
    <p>Added osgi-over-slf4j module which serves as an OSGi LogService

http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=3f776eb758fd59429bb654f594d9c8feb2d9574c
http://github.com/ceki/slf4j/commit/3f776eb758fd59429bb654f594d9c8feb2d9574c

commit 3f776eb758fd59429bb654f594d9c8feb2d9574c
Author: Christian Trutz <christian.trutz at belaso.de>
Date:   Thu Nov 8 14:46:17 2012 +0100

    Velocity 1.7 support included.
    
    See also http://bugzilla.slf4j.org/show_bug.cgi?id=280
    Signed-off-by: Christian Trutz <christian.trutz at belaso.de>

diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
index 2282339..46c0aa1 100644
--- a/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
+++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
@@ -338,4 +338,12 @@ public class Category {
     }
   }
 
+  public void setAdditivity(boolean additive) {
+    // nothing to do
+  }
+  
+  public void addAppender(Appender newAppender) {
+    // nothing to do
+  }
+
 }
diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java
index 3f65f44..ca2268d 100644
--- a/log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java
+++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java
@@ -24,4 +24,12 @@ package org.apache.log4j;
  * */
 public class PatternLayout extends Layout {
 
+  public PatternLayout() {
+    super();
+  }
+
+  public PatternLayout(String pattern) {
+    super();
+  }
+
 }
diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/RollingFileAppender.java
similarity index 63%
copy from log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java
copy to log4j-over-slf4j/src/main/java/org/apache/log4j/RollingFileAppender.java
index 3f65f44..a971e06 100644
--- a/log4j-over-slf4j/src/main/java/org/apache/log4j/PatternLayout.java
+++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/RollingFileAppender.java
@@ -17,11 +17,34 @@
 // Contributors:  Christian Trutz <christian.trutz at belaso.de>
 package org.apache.log4j;
 
+import java.io.IOException;
+
 /**
  * This class is a minimal implementation of the original Log4J class.
  * 
  * @author Christian Trutz <christian.trutz at belaso.de>
  * */
-public class PatternLayout extends Layout {
+public class RollingFileAppender {
+
+  public RollingFileAppender() {
+    super();
+  }
+
+  public RollingFileAppender(Layout layout, String filename) throws IOException {
+    super();
+  }
+
+  public RollingFileAppender(Layout layout, String filename, boolean append)
+      throws IOException {
+    super();
+  }
+
+  public void setMaxBackupIndex(int maxBackups) {
+    // nothing to do
+  }
+
+  public void setMaximumFileSize(long maxFileSize) {
+    // nothing to do
+  }
 
 }

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

Summary of changes:
 .../src/main/java/org/apache/log4j/Category.java   |  8 +++++++
 .../main/java/org/apache/log4j/PatternLayout.java  |  8 +++++++
 .../{Layout.java => RollingFileAppender.java}      | 25 +++++++++++++++++++++-
 slf4j-site/src/site/pages/news.html                |  9 ++++++++
 4 files changed, 49 insertions(+), 1 deletion(-)
 copy log4j-over-slf4j/src/main/java/org/apache/log4j/{Layout.java => RollingFileAppender.java} (63%)


hooks/post-receive
-- 
SLF4J: Simple Logging Facade for Java


More information about the slf4j-dev mailing list