Registry / logging / toorop-gin-logrus

toorop-gin-logrus

JSON →
library0.0.0-20210225092905-2c785434f26fgogounverified

Integrates the Logrus logging library with the Gin web framework as a middleware.

go get github.com/toorop/gin-logrus
INSTALL
IMPORT
SIG · TOOROP-GIN-LOGRUS
T
toorop-gin-logrus
logginggov0.0.0-20210225092905-2c785434f26f
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.

ginlogrus
github.com/toorop/gin-logrus

Adds Logrus logging middleware to a Gin router.

package main import ( "github.com/gin-gonic/gin" "github.com/toorop/gin-logrus" "github.com/sirupsen/logrus" ) func main() { r := gin.Default() r.Use(ginlogrus.Logger(logrus.StandardLogger())) r.GET("/", func(c *gin.Context) { c.String(200, "Hello") }) r.Run() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210225092905-2c785434f26flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
Resources
toorop-gin-logrus — go get toorop-gin-logrus · libregistry