WebRoot\WEB-INF\classes 在此路径下
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>d:/logs/zhhuizhi.log</file> 项目日志名称路径配置
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>D:/workspace/logs/business.%d{yyyy-MM-dd}.log.zip</fileNamePattern> 项目日志名称路径打包路径配置
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%-20(%d{HH:mm:ss.SSS} [%thread]) %-5level %logger{80} - %msg%n</pattern>
</layout>
</appender>