SpringBoot配置某个类启用debug日志

问题

在Spring项目中,某个类里面使用debug级别的日志打印。需要使它生效。

解决

在Spring的配置文件中,添加:

logging:
  level:
    com.xxx.xxx.service.impl.CxxxImp: DEBUG

你可能感兴趣的:(spring,boot,java,spring)