Commit a20a24a0 by linxu

修改logback配置

parent fdccd9c0
......@@ -216,10 +216,9 @@
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>*.yml</include>
<include>**/*.xml</include>
</includes>
<excludes>
<exclude>application-*.yml</exclude>
</excludes>
</resource>
</resources>
......
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<springProperty name="spring.redis.host" source="spring.redis.host"/>
<springProperty name="spring.redis.port" source="spring.redis.port"/>
<springProperty name="spring.redis.password" source="spring.redis.password"/>
<springProperty name="redis.host" source="spring.data.redis.host"/>
<springProperty name="redis.port" source="spring.data.redis.port"/>
<springProperty name="redis.password" source="spring.data.redis.password"/>
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="UTF-8">
......@@ -27,9 +27,9 @@
</appender>
<appender name="logstash" class="com.cwbase.logback.RedisAppender">
<host>${spring.redis.host}</host>
<port>${spring.redis.port}</port>
<password>${spring.redis.password}</password>
<host>${redis.host}</host>
<port>${redis.port}</port>
<password>${redis.password}</password>
<key>logstash</key>
<additionalField>
<key>user</key>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment