提交 72897cb9 编写于 作者: V vsair 提交者: yukon

[ROCKETMQ-95] Fix damaged patterns, closes apache/incubator-rocketmq#70

上级 c6211225
......@@ -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>
......@@ -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>
......
......@@ -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>
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册