This is an automated email from the ASF dual-hosted git repository. membphis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push: new 497acbb doc: update `http-logger` plugins Chinese docs. (#1755) 497acbb is described below commit 497acbb749954c21044c609c59a0d8678ed2a04d Author: Scaat Feng <scaat.f...@gmail.com> AuthorDate: Mon Jun 22 19:12:50 2020 +0800 doc: update `http-logger` plugins Chinese docs. (#1755) --- doc/zh-cn/plugins/http-logger.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/zh-cn/plugins/http-logger.md b/doc/zh-cn/plugins/http-logger.md index b84e576..01e3ee1 100644 --- a/doc/zh-cn/plugins/http-logger.md +++ b/doc/zh-cn/plugins/http-logger.md @@ -17,7 +17,7 @@ # --> -# Summary +# 目录 - [**定义**](#name) - [**属性列表**](#attributes) - [**如何开启**](#how-to-enable) @@ -26,27 +26,27 @@ ## 定义 -`http-logger` 是一个插件,可将Log数据请求推送到HTTP / HTTPS服务器。 +`http-logger` 是一个插件,可将Log数据请求推送到 HTTP / HTTPS 服务器。 -这将提供将Log数据请求作为JSON对象发送到监视工具和其他HTTP服务器的功能。 +这将提供将 Log 数据请求作为JSON对象发送到监视工具和其他 HTTP 服务器的功能。 ## 属性列表 -|属性名称 |必选项 |描述| +|名称 |必选项 |描述| |--------- |--------|-----------| -| uri |必要的| 服务器的URI | +| uri |必要的| 服务器的 URI | | authorization |可选的| 授权头部 | | keepalive |可选的|发送请求后保持连接活动的时间| -| name |可选的|标识logger的唯一标识符| -| batch_max_size |可选的|每批的最大大小,默认为1000| -| inactive_timeout |可选的|刷新缓冲区的最大时间(以秒为单位),默认值为5s| -| buffer_duration |可选的|必须先处理批次中最旧条目的最长期限(以秒为单位),默认值为5| -| max_retry_count |可选的|从处理管道中移除之前的最大重试次数,默认为0| -| retry_delay |可选的|如果执行失败,则应延迟执行流程的秒数,默认为1| +| name |可选的|标识 logger 的唯一标识符| +| batch_max_size |可选的|每批的最大大小,默认为 1000| +| inactive_timeout |可选的|刷新缓冲区的最大时间(以秒为单位),默认值为 5| +| buffer_duration |可选的|必须先处理批次中最旧条目的最长期限(以秒为单位),默认值为 5| +| max_retry_count |可选的|从处理管道中移除之前的最大重试次数,默认为 0| +| retry_delay |可选的|如果执行失败,则应延迟执行流程的秒数,默认为 1| ## 如何开启 -1. 这是有关如何为特定路由启用http-logger插件的示例。 +1. 这是有关如何为特定路由启用 http-logger 插件的示例。 ```shell curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' @@ -79,7 +79,7 @@ hello, world ## 禁用插件 -在插件配置中删除相应的json配置以禁用http-logger。APISIX插件是热重载的,因此无需重新启动APISIX: +在插件配置中删除相应的 json 配置以禁用 http-logger。APISIX 插件是热重载的,因此无需重新启动 APISIX: ```shell $ curl http://127.0.0.1:2379/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d value='