shreemaan-abhishek opened a new issue, #10494:
URL: https://github.com/apache/apisix/issues/10494

   ### Description
   
   Taking an example of Kafka Logger, the plugin metadata log_format is sourced 
from log_util.lua:
   
   
https://github.com/apache/apisix/blob/4aeda49d853e274289792008b4c14928ebb46a5d/apisix/plugins/kafka-logger.lua#L133C1-L139C2
   
   
https://github.com/apache/apisix/blob/4aeda49d853e274289792008b4c14928ebb46a5d/apisix/utils/log-util.lua#L33C1-L43C1
   
   But a totally different log_format goes unused and a different log format is 
in use by default:
   
   
https://github.com/apache/apisix/blob/4aeda49d853e274289792008b4c14928ebb46a5d/apisix/utils/log-util.lua#L132C1-L161C1
   
   This is not inline with the documentation:
   
   <img width="816" alt="image" 
src="https://github.com/apache/apisix/assets/61597896/30226f0f-8f3c-4ede-854f-23e7fef0fff8";>
   
   https://apisix.apache.org/docs/apisix/plugins/kafka-logger/#metadata
   
   ### How this can be fixed:
   
   - if the metadata log format is not in use (can be done by removing it and 
running the CI) then get rid of it.
   - update the documentation to show the correct log format.
   - check if other logger plugins have the same issue.


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

Reply via email to