You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/24 15:35:02 UTC

[GitHub] [apisix] hf400159 commented on a diff in pull request #7749: feat(log-rorate): log-rotate plugin support max_size

hf400159 commented on code in PR #7749:
URL: https://github.com/apache/apisix/pull/7749#discussion_r953958594


##########
docs/zh/latest/plugins/log-rotate.md:
##########
@@ -39,6 +39,7 @@ description: 云原生 API 网关 Apache APISIX log-rotate 插件用于定期切
 | ------------------ | ------- | ------ | ------- | ------------- | ---------------------------------------------------------------------------- |
 | interval           | integer | 是     | 60 * 60 |               | 每间隔多长时间切分一次日志,以秒为单位。                                        |
 | max_kept           | integer | 是     | 24 * 7  |               | 最多保留多少份历史日志,超过指定数量后,自动删除老文件。                         |
+| max_size           | integer | 否     | -1      |               | 日志文件超过指定大小时进行切分,单位为 Byte 。如果 max_size 小于 0 或者根据 interval 计算的时间到达时,将不会根据 max_size 切分日志 |

Review Comment:
   ```suggestion
   | max_size           | integer | 否     | -1      |               | 日志文件超过指定大小时进行切分,单位为 Byte 。如果 `max_size` 小于 0 或者根据 `interval` 计算的时间到达时,将不会根据 `max_size` 切分日志。 |
   ```



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org