- Notifications
You must be signed in to change notification settings - Fork3
logrus-logger is a request logging middleware for Chi using Logrus logging library
License
NotificationsYou must be signed in to change notification settings
chi-middleware/logrus-logger
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Chi logrus-logger middleware
logrus-logger is a request logging middleware for Chi usingLogrus logging library
Import using:
import"github.com/chi-middleware/logrus-logger"
Use middleware with default (Info) logging level:
log:=logrus.New()r:=chi.NewRouter()r.Use(logger.Logger("router",log))
or
Use middleware with Debug logging level:
log:=logrus.New()log.SetLevel(logrus.TraceLevel)r:=chi.NewRouter()r.Use(logger.LoggerWithLevel("router",log,logrus.DebugLevel))
About
logrus-logger is a request logging middleware for Chi using Logrus logging library
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.