日志配置(原来基础上添加)
#debug: true
logging:
# 设置日志分组
group:
ebank: com.atitheima.controller,com.atitheima.service,com.atitheima.dao
level:
root: debug
# 为分组设置日志级别
ebank: info
# 为对应的包设置日志级别
# com.atitheima.controller: warn
# 设置日志格式
pattern:
console: "%d %clr(%5p) --- [%16t] %clr(%-40.40c){cyan} : %m %n"
# 设置日志文件名字 日志文件大小
file:
name: server.log
logback:
rollingpolicy:
file-name-pattern: server.%d{yyyy-MM-dd}.%i.log
max-file-size: 3KB