Skip to content

Commit

Permalink
升级到0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
夜色 committed Dec 28, 2016
1 parent e224ada commit d6a5bee
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
26 changes: 13 additions & 13 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@
</encoder>
</appender>

<!-- redis log -->
<appender name="REDIS_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.home}/redis-mpush.log</file>
<!-- cache log -->
<appender name="CACHE_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.home}/cache-mpush.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.home}/redis-mpush.log.%d{yyyy-MM-dd}
<fileNamePattern>${log.home}/cache-mpush.log.%d{yyyy-MM-dd}
</fileNamePattern>
<maxHistory>5</maxHistory>
</rollingPolicy>
Expand All @@ -141,12 +141,12 @@
</encoder>
</appender>

<!-- zk log -->
<appender name="ZK_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.home}/zk-mpush.log</file>
<!-- SRD log -->
<appender name="SRD_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.home}/srd-mpush.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.home}/zk-mpush.log.%d{yyyy-MM-dd}
<fileNamePattern>${log.home}/srd-mpush.log.%d{yyyy-MM-dd}
</fileNamePattern>
<maxHistory>10</maxHistory>
</rollingPolicy>
Expand Down Expand Up @@ -210,13 +210,13 @@
<level value="debug"/>
<appender-ref ref="PUSH_APPENDER"/>
</logger>
<logger name="mpush.redis.log" additivity="false">
<logger name="mpush.cache.log" additivity="false">
<level value="debug"/>
<appender-ref ref="REDIS_APPENDER"/>
<appender-ref ref="CACHE_APPENDER"/>
</logger>
<logger name="mpush.zk.log" additivity="false">
<logger name="mpush.srd.log" additivity="false">
<level value="debug"/>
<appender-ref ref="ZK_APPENDER"/>
<appender-ref ref="SRD_APPENDER"/>
</logger>
<logger name="mpush.profile.log" additivity="false">
<level value="debug"/>
Expand All @@ -227,4 +227,4 @@
<level value="warn"/>
<appender-ref ref="MPUSH_APPENDER"/>
</logger>
</configuration>
</configuration>
2 changes: 1 addition & 1 deletion src/main/resources/mpush.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mp.log-level=${log.level}
mp.net.gateway-server-net=udp // 网关服务使用的网络 udp/tcp
mp.net.gateway-server-net=tcp // 网关服务使用的网络 udp/tcp
mp.net.alloc-server-port=9999
mp.zk.server-address="127.0.0.1:2181"
mp.redis {// redis 集群配置
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mp.log.dir=${user.dir}/alloc/target/logs
mp.log.level=debug
mp.log-conf-path=logback.xml
mp.net.gateway-server-net=udp // 网关服务使用的网络 udp/tcp
mp.net.gateway-server-net=tcp // 网关服务使用的网络 udp/tcp
mp.net.alloc-server-port=9999
mp.zk.server-address="127.0.0.1:2181"
mp.redis {// redis 集群配置
Expand Down
20 changes: 10 additions & 10 deletions src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true">

<property name="log.root.level" value="${log.root.level}"/> <!-- 日志级别 -->
<!-- app log -->
<appender name="MPUSH_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
<target>System.err</target>
Expand Down Expand Up @@ -87,8 +87,8 @@
</encoder>
</appender>

<!-- redis log -->
<appender name="REDIS_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
<!-- cache log -->
<appender name="CACHE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
Expand All @@ -109,8 +109,8 @@
</encoder>
</appender>

<!-- zk log -->
<appender name="ZK_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
<!-- srd log -->
<appender name="SRD_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
Expand Down Expand Up @@ -142,7 +142,7 @@
</appender>

<root>
<level value="debug"/>
<level value="${log.root.level}"/>
<appender-ref ref="MPUSH_APPENDER"/>
<appender-ref ref="MPUSH_INFO_APPENDER"/>
<appender-ref ref="MPUSH_DEBUG_APPENDER"/>
Expand Down Expand Up @@ -172,13 +172,13 @@
<level value="debug"/>
<appender-ref ref="PUSH_APPENDER"/>
</logger>
<logger name="mpush.redis.log" additivity="false">
<logger name="mpush.cache.log" additivity="false">
<level value="debug"/>
<appender-ref ref="REDIS_APPENDER"/>
<appender-ref ref="CACHE_APPENDER"/>
</logger>
<logger name="mpush.zk.log" additivity="false">
<logger name="mpush.srd.log" additivity="false">
<level value="debug"/>
<appender-ref ref="ZK_APPENDER"/>
<appender-ref ref="SRD_APPENDER"/>
</logger>
<logger name="mpush.profile.log" additivity="false">
<level value="debug"/>
Expand Down

0 comments on commit d6a5bee

Please sign in to comment.