Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 592 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 592 Bytes

Go HTTP Logger Middleware

This is a Go logger middleware geared towards capturing the important per-request data while allowing clients to specify how their logging takes place.

This is mostly helpful when you have a specific format for other logs in your app that you want to continue to follow, while you don't want to implement the required logic for actually grabbing the data yourself.

Loosely based on https://blog.questionable.services/article/guide-logging-middleware-go/

See the code for the StdLibLogger for an example of how to create your own logger.