mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
Extends logger params support
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1457128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -41,6 +41,8 @@ public interface Logger {
|
||||
|
||||
void warn(String msg, String... args);
|
||||
|
||||
void warn(String msg, Object... args);
|
||||
|
||||
void warn(String msg, Throwable ex, String... args);
|
||||
|
||||
boolean isWarnEnabled();
|
||||
|
||||
+4
@@ -56,6 +56,10 @@ public class CommonsLogger implements Logger {
|
||||
log.warn(LoggerUtils.format(msg, args));
|
||||
}
|
||||
|
||||
public void warn(String msg, Object... args) {
|
||||
log.warn(LoggerUtils.format(msg, args));
|
||||
}
|
||||
|
||||
public void warn(String msg, Throwable ex, String... args) {
|
||||
log.warn(LoggerUtils.format(msg, args), ex);
|
||||
}
|
||||
|
||||
@@ -63,6 +63,10 @@ public class JdkLogger implements Logger {
|
||||
log.log(Level.WARNING, LoggerUtils.format(msg, args));
|
||||
}
|
||||
|
||||
public void warn(String msg, Object... args) {
|
||||
log.log(Level.WARNING, LoggerUtils.format(msg, args));
|
||||
}
|
||||
|
||||
public void warn(String msg, Throwable ex, String... args) {
|
||||
log.log(Level.WARNING, LoggerUtils.format(msg, args), ex);
|
||||
}
|
||||
|
||||
@@ -53,6 +53,10 @@ public class Slf4jLogger implements Logger {
|
||||
log.warn(LoggerUtils.format(msg, args));
|
||||
}
|
||||
|
||||
public void warn(String msg, Object... args) {
|
||||
log.warn(LoggerUtils.format(msg, args));
|
||||
}
|
||||
|
||||
public void warn(String msg, Throwable ex, String... args) {
|
||||
log.warn(LoggerUtils.format(msg, args), ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user