【发布时间】:2015-04-27 17:59:43
【问题描述】:
如果我们在集中式日志记录类的日志记录语句中使用以下语句,会对性能产生什么影响。
class LogUtil {
public static debug(String message) {
LoggerFactory.getLogger(Thread.currentThread().getStackTrace()[2].getClassName ()).debug(message);
}
}
我正在使用 SLF4J 和 log4j2。
【问题讨论】: