当前位置: 代码迷 >> 综合 >> springboot springcloud 设置日志
  详细解决方案

springboot springcloud 设置日志

热度:77   发布时间:2023-11-23 09:08:20.0

logging:
  pattern:
  # d:日期时间 ; msg:打印信息;%n: 回车
    console: "%d - %msg%n"
  # 设置日志输出那个目录, 默认spring.log ,上面设置的格式化没用
  path:  D:\logs\
  # 设置日志输出那个目录下MyTest.log,上面设置的格式化没用
  file:  D:\logs\test.log
  level:
    xxx: debug  #设置LoggerTest类输出 debug以上的日志