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.