Skip to content

Commit

Permalink
#4 修改日志配置。
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagewang committed Aug 1, 2013
1 parent 3726907 commit f25c437
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions conf/logback_broker.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="DefaultAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/rocketmqlogs/bk_default.log</file>
<file>${user.home}/rocketmqlogs/broker_default.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${user.home}/rocketmqlogs/otherdays/bk_default-%d{yyyy-MM-dd}.%i.log
Expand Down Expand Up @@ -150,10 +150,10 @@
</encoder>
</appender>
<appender name="RocketmqSendbackmsgLiveMoniterAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/logs/rocketmqlogs/sendbackmsgLive.log</file>
<file>${user.home}/rocketmqlogs/sendbackmsgLive.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/sendbackmsgLive-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${user.home}/rocketmqlogs/otherdays/sendbackmsgLive-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>104857600</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
Expand Down Expand Up @@ -217,14 +217,17 @@
<level value="INFO"/>
<appender-ref ref="RocketmqStoreStatsMoniterAppender"/>
</logger>

<logger name="PullmsgLiveMoniter" additivity="false">
<level value="ERROR" />
<appender-ref ref="RocketmqPullmsgLiveMoniterAppender" />
</logger>

<logger name="SendbackmsgLiveMoniter" additivity="false">
<level value="ERROR" />
<appender-ref ref="RocketmqSendbackmsgLiveMoniterAppender" />
</logger>

<logger name="SendmsgLiveMoniter" additivity="false">
<level value="ERROR" />
<appender-ref ref="RocketmqSendmsgLiveMoniterAppender" />
Expand Down
2 changes: 1 addition & 1 deletion conf/logback_namesrv.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="DefaultAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/rocketmqlogs/ns_default.log</file>
<file>${user.home}/rocketmqlogs/namesrv_default.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${user.home}/rocketmqlogs/otherdays/ns_default-%d{yyyy-MM-dd}.%i.log
Expand Down
2 changes: 1 addition & 1 deletion conf/logback_tools.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="DefaultAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/rocketmqlogs/tl_default.log</file>
<file>${user.home}/rocketmqlogs/tools_default.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${user.home}/rocketmqlogs/otherdays/tl_default-%d{yyyy-MM-dd}.%i.log
Expand Down

0 comments on commit f25c437

Please sign in to comment.