Author: ceki
Date: Mon Jan 9 18:31:26 2006
New Revision: 492
Modified:
nlog4j/trunk/src/java/org/slf4j/impl/MessageFormatter.java
nlog4j/trunk/src/java/org/slf4j/impl/SimpleLogger.java
Log:
sync with SLF4J
Modified: nlog4j/trunk/src/java/org/slf4j/impl/MessageFormatter.java
==============================================================================
--- nlog4j/trunk/src/java/org/slf4j/impl/MessageFormatter.java (original)
+++ nlog4j/trunk/src/java/org/slf4j/impl/MessageFormatter.java Mon Jan 9
18:31:26 2006
@@ -101,7 +101,7 @@
*
* @param messagePattern The message pattern which will be parsed and
formatted
* @param argArray An array of arguments to be substituted in place of
formatting anchors
- * @return
+ * @return The formatted message
*/
public static String arrayFormat(String messagePattern, Object[] argArray) {
if(messagePattern == null) {
Modified: nlog4j/trunk/src/java/org/slf4j/impl/SimpleLogger.java
==============================================================================
--- nlog4j/trunk/src/java/org/slf4j/impl/SimpleLogger.java (original)
+++ nlog4j/trunk/src/java/org/slf4j/impl/SimpleLogger.java Mon Jan 9
18:31:26 2006
@@ -234,7 +234,7 @@
* Log a message of level INFO, including an exception.
*/
public void info(String msg, Throwable t) {
- log(INFO_STR, msg.toString(), t);
+ log(INFO_STR, msg, t);
}
/**
@@ -249,7 +249,7 @@
* to the format outlined above.
*/
public void warn(String msg) {
- log(WARN_STR, msg.toString(), null);
+ log(WARN_STR, msg, null);
}
/**
@@ -280,7 +280,7 @@
* Log a message of level WARN, including an exception.
*/
public void warn(String msg, Throwable t) {
- log(WARN_STR, msg.toString(), t);
+ log(WARN_STR, msg, t);
}
/**
@@ -295,7 +295,7 @@
* to the format outlined above.
*/
public void error(String msg) {
- log(ERROR_STR, msg.toString(), null);
+ log(ERROR_STR, msg, null);
}
/**
@@ -327,7 +327,7 @@
* Log a message of level ERROR, including an exception.
*/
public void error(String msg, Throwable t) {
- log(ERROR_STR, msg.toString(), t);
+ log(ERROR_STR, msg, t);
}
}
_______________________________________________
nlog4j-dev mailing list
[email protected]
http://slf4j.org/mailman/listinfo/nlog4j-dev