示例:
public class TestObject {
void test(Object object) {
if(LOG.isDebugEnabled()){
LOG.debug("some logging " + expensiveCalculation(1));
}
}
}
在应用快速修复后:
public class TestObject {
void test(Object object) {
LOG.debug("some logging " + expensiveCalculation(1));
}
}
此检查支持 Log4j2 和 SLF4J 日志记录框架( 构建器除外)。
2024.2 最新变化