小编Luậ*_*inh的帖子

为什么 Java 记录器需要检查 isDebugEnabled()?

为什么java记录器需要检查

if (log.isDebugEnabled()) {
   log.debug("Debug message");
}
Run Code Online (Sandbox Code Playgroud)

而不是直接打电话log.debug("Debug message");

java logging spring spring-boot

1
推荐指数
1
解决办法
936
查看次数

标签 统计

java ×1

logging ×1

spring ×1

spring-boot ×1