xxd763795151 commented 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/issues/2656#issuecomment-785507603
   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:
[email protected]


Reply via email to