[slf4j-dev] svn commit: r1027 - slf4j/trunk/slf4j-log4j12/src/test/java/org/slf4j

ceki at slf4j.org ceki at slf4j.org
Fri May 30 23:38:32 CEST 2008


Author: ceki
Date: Fri May 30 23:38:32 2008
New Revision: 1027

Modified:
   slf4j/trunk/slf4j-log4j12/src/test/java/org/slf4j/ListAppender.java

Log:
- added QOS.ch copyright 
- added Joen and Ceki as authors
- tested to make sure that location information can be extracted correctly

Modified: slf4j/trunk/slf4j-log4j12/src/test/java/org/slf4j/ListAppender.java
==============================================================================
--- slf4j/trunk/slf4j-log4j12/src/test/java/org/slf4j/ListAppender.java	(original)
+++ slf4j/trunk/slf4j-log4j12/src/test/java/org/slf4j/ListAppender.java	Fri May 30 23:38:32 2008
@@ -8,10 +8,15 @@
 
 public class ListAppender extends AppenderSkeleton {
 
-  List list = new ArrayList();
+  public List list = new ArrayList();
+  
+  public boolean extractLocationInfo = false;
   
   protected void append(LoggingEvent event) {
     list.add(event);
+    if(extractLocationInfo) {
+      event.getLocationInformation();
+    }
   }
 
   public void close() {



More information about the slf4j-dev mailing list