Commit 29a0cfb7 by mahx

[修改]logback中redis配置

parent a7b168a8
<?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.data.redis.host" source="spring.data.redis.host"/>
<springProperty name="spring.data.redis.port" source="spring.data.redis.port"/>
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="UTF-8">
......@@ -25,9 +25,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>${spring.data.redis.host}</host>
<port>${spring.data.redis.port}</port>
<password>${spring.data.redis.password}</password>
<key>logstash</key>
<additionalField>
<key>user</key>
......
<?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.data.redis.host" source="spring.data.redis.host"/>
<springProperty name="spring.data.redis.port" source="spring.data.redis.port"/>
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="UTF-8">
......@@ -25,9 +25,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>${spring.data.redis.host}</host>
<port>${spring.data.redis.port}</port>
<password>${spring.data.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