A Gin-Gonic middleware forwarding access logs over HTTP (in JSON). It can be
used for instance to forward all your requests logs to a Fluentd HTTP listener.
Non blocking: heavy calls made in a goroutine separated from the GIN handler
Possible to log the request & response bodies all the time, when the handler
returns an error code (4xx, 5xx) or never
Memory efficient: uses the standard io library abstractions to limit
what’s loaded in memory, body logs are truncated to 10000 bytes by default,
in case of connection failure with the HTTP endpoint, no more than 1000 logs
will be kept in memory. These values can be tweaked to your liking.