Skip to content

fxlogrus provides a logger for uber-go/fx based on sirupsen/logrus

License

Notifications You must be signed in to change notification settings

takt-corp/fx-logrus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logrus Logger for FX

fxlogrus provides a logger for uber-go/fx based on sirupsen/logrus. All non-errors are logged as debug to keep the logs quiet, errors are still logged as errors.

fx.New(
    // configure logger
    fx.WithLogger(func() fxevent.Logger {
        return &fxlogrus.LogrusLogger{Logger: logrus.StandardLogger()}
    }),
).Run()