[Enhancement] Switch log appender from DailyRollingFileAppender to RollingFileAppender
Closed this issue · 2 comments
daniel-y commented
Who is this for and what problem do they have today?
Currently, Kafka employs the DailyRollingFileAppender for log rotation, but it cannot configure maximum file numbers in log4j, potentially leading to disk space issues.
Why is solving this problem impactful?
Fortunately, log4j offers a RollingFileAppender that supports configuring the maxBackupIndex, allowing us to limit the maximum disk space used by log files.
Additional notes
More details please refer to: https://logging.apache.org/log4j/1.x/apidocs/org/apache/log4j/RollingFileAppender.html
daniel-y commented