Gallardot commented on PR #9712: URL: https://github.com/apache/apisix/pull/9712#issuecomment-1627396438
> Good idea, but I read in the [docs](https://apisix.apache.org/zh/docs/apisix/plugins/file-logger/) that `file-logger` plugin doesn't support `include_req_body_expr`. In fact, `file-logger` plugin support `include_req_body` and `include_req_body_expr`. You can refer to the [kafka plugin for configuration](https://apisix.apache.org/docs/apisix/plugins/kafka-logger/) and have a try. https://github.com/apache/apisix/blob/bb0a0e6e87eb0f15807be6fed0e7c983855d491c/apisix/plugins/file-logger.lua#L151-L153 https://github.com/apache/apisix/blob/bb0a0e6e87eb0f15807be6fed0e7c983855d491c/apisix/utils/log-util.lua#L228 https://github.com/apache/apisix/blob/bb0a0e6e87eb0f15807be6fed0e7c983855d491c/apisix/utils/log-util.lua#L166 If it doesn't meet your scenario, you can implement the `include_req_header` and `include_req_header_expr` feature in `get_full_log`. https://github.com/apache/apisix/blob/bb0a0e6e87eb0f15807be6fed0e7c983855d491c/apisix/utils/log-util.lua#L108 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
