Registry / logging / jpillora-requestlog

jpillora-requestlog

JSON →
library1.0.0gogounverified

An HTTP request logging middleware for Go.

go get github.com/jpillora/requestlog
INSTALL
IMPORT
SIG · JPILLORA-REQUESTLO
J
jpillora-requestlog
logginggov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

requestlog
github.com/jpillora/requestlog

Wrap an HTTP handler with request logging.

package main import ( "net/http" "github.com/jpillora/requestlog" ) func main() { handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello")) }) http.ListenAndServe(":8080", requestlog.Wrap(handler)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
1
Resources
jpillora-requestlog — go get jpillora-requestlog · libregistry