spacewander commented on pull request #6181:
URL: https://github.com/apache/apisix/pull/6181#issuecomment-1019464251


   It is **very unsuitable** to add every field to the default log format. And 
there is no need to maintain your own kafka-logger.
   
   Your understanding of APISIX is very very incorrect.
   
   > 比如space小哥这里提的优化:#6163 
支持用户自定义日志格式,也能够记录路由里面具体的路由标签,用这个方法除了有上述难点之外,这个方法记录的路由标签也是固定不变的,如果路由标签新增了其他keyword,将不会被记录,需要重新定义日志格式,增加了运维复杂度。
   
   Please read the code carefully. All labels are logged.
   
   > 如何通过log_format来实现和默认全日志(full log)一样的日志内容?这个之前求助过,实际没有结论
   
   Solved. Use a custom variable to call the `get_full_log`.
   
   > log_format 一旦定义就是静态的设置,后续如果APISIX的日志格式有所优化,得通过修改log_format来更新
   
   The current way is to avoid putting any more fields into the full log. Every 
new field should be in the custom log.
   
   


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