feat: add max request and response body size attributes to http-logger plugin
Description
In some cases APISIX users might want to customize the max size of request/response body sent to HTTP server via http-logger plugin to be lower/higher than the current default value of 512KiB.
kafka-logger plugin already supports max_resp_body_bytes and max_req_body_bytes attributes, so I followed the example and added them in this PR.
Hi @Baoyuantop ! I've created the issue for this PR per your request
From the current code, these properties are defined in public functions with https://github.com/apache/apisix/pull/11133
It looks like other log-like plugins can configure these settings directly, but for APISIX, do we need to standardize the documentation of other log plugins and add relevant tests?
@Baoyuantop don't max_req_body_bytes and max_resp_body_bytes need to be defined in the logging plugins schemas to actually be evaluated?
The schema of these plugins does not define additionalProperties = false, which means that you can add these properties directly in the plugin's configuration, but this behavior is untested and may have unexpected problems.
So I think it's still recommended to supplement the corresponding documentation and tests.
@Baoyuantop is this issue resolved? bcs currently i'm working on it. my plan is to add both attributes to each logger defined in APISIX (19 in total if not mistaken), but for each logger plugin should i add test cases just like in this PR (https://github.com/apache/apisix/pull/11133/changes#diff-f3e71a8e97b76235c917335136683b5b10512a42140191c90529e5077f4e0604R1)? wdyt