Skip to content

Commit

Permalink
[ROCKETMQ-95] Fix damaged patterns, closes apache#70
Browse files Browse the repository at this point in the history
  • Loading branch information
vsair authored and zhouxinyu committed Feb 28, 2017
1 parent c621122 commit 72897cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/main/resources/log4j_rocketmq_client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<param name="encoding" value="UTF-8"/>
<param name="target" value="System.out"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %defaultTopic{2} , %m%n"/>
<param name="ConversionPattern" value="%-5p %c{2} , %m%n"/>
</layout>
</appender>

Expand All @@ -35,7 +35,7 @@
<param name="maxFileSize" value="1073741824"/>
<param name="maxBackupIndex" value="${client.logFileMaxIndex}"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%defaultTopicQueueNums{yyy-MM-dd HH\:mm\:ss,SSS} %p %defaultTopic{1}(%L) - %m%n"/>
<param name="ConversionPattern" value="%d{yyy-MM-dd HH\:mm\:ss,SSS} %p %c{1}(%L) - %m%n"/>
</layout>
</appender>

Expand Down
4 changes: 2 additions & 2 deletions client/src/main/resources/logback_rocketmq_client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<file>${client.logRoot}/rocketmq_client.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${client.logRoot}/otherdays/rocketmq_client.%properties.log
<fileNamePattern>${client.logRoot}/otherdays/rocketmq_client.%i.log
</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>${client.logFileMaxIndex}</maxIndex>
Expand All @@ -32,7 +32,7 @@
<maxFileSize>100MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%defaultTopicQueueNums{yyy-MM-dd HH:mm:ss,GMT+8} %p %t - %m%n</pattern>
<pattern>%d{yyy-MM-dd HH:mm:ss,GMT+8} %p %t - %m%n</pattern>
<charset class="java.nio.charset.Charset">UTF-8</charset>
</encoder>
</appender>
Expand Down

0 comments on commit 72897cb

Please sign in to comment.