This commit is contained in:
Looly
2020-02-21 18:56:42 +08:00
parent fc8dfc8fb1
commit 0553c5ca0b
12 changed files with 278 additions and 99 deletions

View File

@@ -54,11 +54,6 @@ public class Log4j2Log extends AbstractLog {
return logger.isDebugEnabled();
}
@Override
public void debug(String format, Object... arguments) {
debug(null, format, arguments);
}
@Override
public void debug(String fqcn, Throwable t, String format, Object... arguments) {
logIfEnabled(fqcn, Level.DEBUG, t, format, arguments);

View File

@@ -57,7 +57,9 @@ public class CustomLogTest {
LogFactory factory = new Log4j2LogFactory();
LogFactory.setCurrentLogFactory(factory);
Log log = LogFactory.get();
log.debug(null);
log.debug("This is custom '{}' log\n{}", factory.getName(), LINE);
log.info(null);
log.info("This is custom '{}' log\n{}", factory.getName(), LINE);
}