[slf4j-dev] svn commit: r471 - in slf4j/trunk/tests/src/java/org/slf4j: . impl
ceki at slf4j.org
ceki at slf4j.org
Tue Dec 27 11:22:17 CET 2005
Author: ceki
Date: Tue Dec 27 11:22:16 2005
New Revision: 471
Modified:
slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java
slf4j/trunk/tests/src/java/org/slf4j/impl/MLogger.java
slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java
Log:
added missing printing methods for supporting array arguments
Modified: slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java (original)
+++ slf4j/trunk/tests/src/java/org/slf4j/InvokingSLF4J.java Tue Dec 27 11:22:16 2005
@@ -78,13 +78,14 @@
logger.debug("val={} val={}", i1, i2);
logger.debug("val={} val={} val={}", new Object[]{i1, i2, i3});
- logger.debug("Hello world 1", e);
-
+ logger.debug("Hello world 2", e);
logger.info("Hello world 2.");
- logger.info("Hello world {}", new Integer(2));
+
+
logger.warn("Hello world 3.");
- logger.warn("Hello world 3.", e);
- logger.warn("Hello world {}", new Integer(3));
+ logger.warn("Hello world 3", e);
+
+
logger.error("Hello world 4.");
logger.error("Hello world {}", new Integer(3));
logger.error("Hello world 4.", e);
Modified: slf4j/trunk/tests/src/java/org/slf4j/impl/MLogger.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/impl/MLogger.java (original)
+++ slf4j/trunk/tests/src/java/org/slf4j/impl/MLogger.java Tue Dec 27 11:22:16 2005
@@ -74,6 +74,10 @@
// NOP
}
+ public void info(String format, Object[] arg) {
+ // NOP
+ }
+
public void info(String msg, Throwable t) {
// NOP
}
@@ -93,7 +97,12 @@
public void warn(String format, Object arg1, Object arg2) {
// NOP
}
-
+
+ public void warn(String format, Object[] arg) {
+ // NOP
+ }
+
+
public void warn(String msg, Throwable t) {
}
@@ -109,6 +118,10 @@
public void error(String format, Object arg1, Object arg2) {
}
+
+ public void error(String format, Object[] arg) {
+ }
+
public void error(String msg, Throwable t) {
}
Modified: slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java
==============================================================================
--- slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java (original)
+++ slf4j/trunk/tests/src/java/org/slf4j/impl/XLogger.java Tue Dec 27 11:22:16 2005
@@ -77,6 +77,9 @@
// NOP
}
+ public void info(String format, Object[] arg) {
+ // NOP
+ }
public void info(String msg, Throwable t) {
// NOP
}
@@ -97,6 +100,9 @@
// NOP
}
+ public void warn(String format, Object[] arg) {
+ }
+
public void warn(String msg, Throwable t) {
}
@@ -113,6 +119,9 @@
public void error(String format, Object arg1, Object arg2) {
}
+ public void error(String format, Object[] arg) {
+ }
+
public void error(String msg, Throwable t) {
}
More information about the slf4j-dev
mailing list