samperson1997 opened a new pull request #1895:
URL: https://github.com/apache/iotdb/pull/1895
Change logback configuration:
* Update `rollingPolicy` from `TimeBasedRollingPolicy` to
`FixedWindowRollingPolicy` (to delete old files according to number of files)
* Add `triggeringPolicy` of `SizeBasedTriggeringPolicy` (to limit the size
of log file)
Since there is no need to maintain timestamp in log file name.
For example,
```
<rollingPolicy
class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${LOG_PATH}/log-error.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>10</maxIndex>
</rollingPolicy>
<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>10MB</maxFileSize>
</triggeringPolicy>
```
As for log-error and log-warn, `maxFileSize` is 10MB, maxIndex is 10;
As for log-info and log-debug, `maxFileSize` is 50MB, maxIndex is 10 (As is
discussed in [this
PR](https://github.com/apache/iotdb/pull/1001#issuecomment-610445716)).
----------------------------------------------------------------
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]