修复日志默认路径从配置文件读取

This commit is contained in:
td_zhangyu 2020-01-02 17:30:07 +08:00
parent df819d8e3c
commit 401f2a5293

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<springProperty scope="context" name="LOG_LEVEL" source="logging.level.root" defaultValue="DEBUG"/>
<springProperty scope="context" name="LOG_HOME" source="spider.job.log.path" defaultValue="/data/spider/logs"/>
<springProperty scope="context" name="LOG_HOME" source="spider.job.log.path" defaultValue="${spider.job.log.path}"/>
<!-- 控制台输出 -->
<appender name="Stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">