Skip to content

Commit

Permalink
feat(broker): log stream thread queue size into stream_watermark.log (#…
Browse files Browse the repository at this point in the history
…702)

Signed-off-by: SSpirits <[email protected]>
  • Loading branch information
ShadowySpirits authored Nov 22, 2023
1 parent cc5c862 commit 7661cdb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions distribution/conf/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
<SizeBasedTriggeringPolicy size="100MB"/>
<DefaultRolloverStrategy max="10"/>
</RollingFile>

<RollingFile name="streamWatermarkAppender" fileName="${LOG_DIR}/stream_watermark.log"
filePattern="${LOG_DIR}/stream_watermark.%i.log">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}{GMT+8} %-5p %m%n"/>
<SizeBasedTriggeringPolicy size="100MB"/>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
</Appenders>

<Loggers>
Expand All @@ -54,6 +61,9 @@
<Logger name="com.automq.rocketmq.metadata" level="info" additivity="false">
<AppenderRef ref="controllerAppender" />
</Logger>
<Logger name="com.automq.stream.utils.threads" level="info" additivity="false">
<AppenderRef ref="streamWatermarkAppender"/>
</Logger>
<Logger name="com.automq.stream" level="info" additivity="false">
<AppenderRef ref="streamAppender"/>
</Logger>
Expand Down

0 comments on commit 7661cdb

Please sign in to comment.