增加配置
<property name="http_log_path" value="jupiter_http_log" />
<!--输出到http_log文件--> <appender name="httpfile" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${http_log_path}/logback.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${http_log_path}/logback.%d{yyyy-MM-dd}.log</fileNamePattern> </rollingPolicy> <encoder> <pattern>%d{HH:mm:ss} [%thread]-[%logger{36}]-%msg%n</pattern> </encoder> </appender> <logger name="com.nuctech.jupiter.filter.HttpLogFilter" level="INFO" additivity="false"> <appender-ref ref="httpfile" /> </logger>