-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: file logger plugin support response body in variable #8711
Changes from 13 commits
3e19f1d
04f69bc
667dd96
e195c71
1847971
9a98eed
3aeb37d
823b709
acd458e
27175d9
e24a839
61c2f75
13497ca
cc40731
b44407c
b7d0690
2bda6af
4d45204
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,6 @@ additional variables. | |
| service_name | core | Name of Service. | | | ||
| redis_cmd_line | Redis | The content of Redis command. | | | ||
| rpc_time | xRPC | Time spent at the rpc request level. | | | ||
| resp_body | core | This variable is only for logger and requires the logger plugin to have a special configuration like `include_resp_body`. | | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should explain what this variable is, and what decides its value There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
||
You can also register your own [variable](./plugin-develop.md#register-custom-variable). |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,5 +48,6 @@ APISIX 除了支持 [NGINX 变量](http://nginx.org/en/docs/varindex.html)外, | |
| service_name | core | APISIX 服务的名称。 | | | ||
| redis_cmd_line | Redis | Redis 命令的内容。 | | | ||
| rpc_time | xRPC | 在 RPC 请求级别所花费的时间。 | | | ||
| resp_body | core | 此变量仅用于 Logger,并要求对应的 Logger 需要具备某些配置。 | | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please put it in alphabetical order There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done
soulbird marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
当然,除上述变量外,你也可以创建自定义[变量](./plugin-develop.md#register-custom-variable)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the comma?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I readded it