Skip to content

matheusd/middlelogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

(Yet Another) Go http logging middleware

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages