Commit a20a24a0 by linxu

修改logback配置

parent fdccd9c0
...@@ -216,10 +216,9 @@ ...@@ -216,10 +216,9 @@
</resource> </resource>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<includes> <excludes>
<include>*.yml</include> <exclude>application-*.yml</exclude>
<include>**/*.xml</include> </excludes>
</includes>
</resource> </resource>
</resources> </resources>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<springProperty name="spring.redis.host" source="spring.redis.host"/> <springProperty name="redis.host" source="spring.data.redis.host"/>
<springProperty name="spring.redis.port" source="spring.redis.port"/> <springProperty name="redis.port" source="spring.data.redis.port"/>
<springProperty name="spring.redis.password" source="spring.redis.password"/> <springProperty name="redis.password" source="spring.data.redis.password"/>
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender"> <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="UTF-8"> <encoder charset="UTF-8">
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
</appender> </appender>
<appender name="logstash" class="com.cwbase.logback.RedisAppender"> <appender name="logstash" class="com.cwbase.logback.RedisAppender">
<host>${spring.redis.host}</host> <host>${redis.host}</host>
<port>${spring.redis.port}</port> <port>${redis.port}</port>
<password>${spring.redis.password}</password> <password>${redis.password}</password>
<key>logstash</key> <key>logstash</key>
<additionalField> <additionalField>
<key>user</key> <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