https://github.com/gregoryv/htlog
htlog provides a log middleware for Go http.Handler
https://github.com/gregoryv/htlog
Last synced: about 1 year ago
JSON representation
htlog provides a log middleware for Go http.Handler
- Host: GitHub
- URL: https://github.com/gregoryv/htlog
- Owner: gregoryv
- License: mit
- Created: 2024-11-26T22:16:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T19:29:22.000Z (over 1 year ago)
- Last Synced: 2025-02-05T07:19:20.373Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
[gregoryv/htlog](https://pkg.go.dev/github.com/gregoryv/htlog)
provides a log middleware for Go http.Handler
## Quick start
go get github.com/gregoryv/htlog
then use it
var h http.Handler
// use default middleware
router := htlog.UseDefault(h)
Depending on the configured Println a request can be logged as
2024/11/28 20:25:00 GET /?password=... 200 7.544µs