You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/02/25 11:36:27 UTC
[GitHub] [rocketmq] xxd763795151 edited a comment on issue #2656: DLedger should logging asynchronously
xxd763795151 edited a comment on issue #2656:
URL: https://github.com/apache/rocketmq/issues/2656#issuecomment-785829007
yeah! I has submit a pr, but there are some questions in my config. https://github.com/apache/rocketmq/pull/2654
my idea as follow:
```
<appender name="DLedger_inner"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/logs/rocketmqlogs/dledger.log</file>
<append>true</append>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/logs/rocketmqlogs/otherdays/dledger.%i.log.gz</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>10</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>100MB</maxFileSize>
</triggeringPolicy>
<encoder>
<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>
<appender name="DLedgerAppender" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="DLedger_inner"/>
</appender>
<logger name="io.openmessaging.storage.dledger" additivity="false">
<level value="INFO"/>
<appender-ref ref="DLedgerAppender"/>
</logger>
```
@duhenglucky
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org