mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bugs
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user