spring boot日志配置.

logging:
file:
name: logs/etc-service/etc-service.log #日志文件名称
max-size: 50KB #单个日志文件最大大小
max-history: 7 #日志归档保留天数
level:
root: info
org.hibernate.type.descriptor.sql.BasicBinder: trace
com.netflix.eureka: OFF
com.netflix.discovery: OFF
org.springframework.cloud.config.client.ConfigServicePropertySourceLocator: WARN
pattern:
#rolling-file-name: ${LOG_FILE}.%d{yyyy-MM-dd}.%i.log #滚动日志文件名称pattern,当文件已gz,zip结尾时,日志文件会被压缩
rolling-file-name: logs/etc-service/%d{yyyy-MM-dd,aux}/etc-service.%d{yyyy-MM-dd}.%i.log #滚动日志文件名称pattern,当文件已gz,zip结尾时,日志文件会被压缩