Hi Community,
I would like to add a File-log plugin to APISIX. It appends the request and response data to the log file in JSON format. The purpose is to better observe and analyze the status of each request and response data. The following are the functions of the plugin: 1. when the plugin is opened, each request is recorded in a separate JSON object, split by a new \n. 2. you can specify your own output file path. 3. you can set whether to close and reopen the log file on each request, if the file is not reopened, it should log all the requested data. 4. the value of the log field can be set or replaced by custom Lua code. The File-log plugin has three configuration items: { …… type = "object", properties = { path = {type = “string”, required = true}, reopen = { type = “boolean”, required = true, default = false }, custom_fields_by_lua = { type = "map" } } } Ref: [1] https://docs.konghq.com/hub/kong-inc/file-log/ Do you have any ideas or suggestions for this? I would very much look forward to your guidance and advice. Best regards!