How can I get all form key and value log by middleware


#1

below is my config:

e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Format: {"time":"${time_rfc3339}","remote_ip":"${remote_ip}","host":"${host}", +
"method":"${method}","uri":"${uri}","status":${status}, "latency":${latency}, +
"latency_human":"${latency_human}","form":${form:platform},"bytes_in":${bytes_in}, +
"bytes_out":${bytes_out}} + “\n”,
Output: interfaceWriter,
}))

now I can get single form “platform” in example