Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
/ gin-logrus Public archive

Gin middleware/handler to logger url path using sirupsen/logrus.

License

Notifications You must be signed in to change notification settings

takt-corp/gin-logrus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logrus Logger for Gin

Gin middleware/handler to logger url path using sirupsen/logrus.

    r := gin.New()

    r.Use(ginlogrus.LoggerMiddleware(ginlogrus.LoggerMiddlewareParams{
        SkipPaths: []string{"/ping", "/health", "/:some_id/ping"}
    }))

About

Gin middleware/handler to logger url path using sirupsen/logrus.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published