Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/takt-corp/fx-logrus

fxlogrus provides a logger for uber-go/fx based on sirupsen/logrus
https://github.com/takt-corp/fx-logrus

fx go golang logrus uber-go

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Logrus Logger for FX

fxlogrus provides a logger for [uber-go/fx](https://github.com/uber-go/fx) based on [sirupsen/logrus](https://github.com/sirupsen/logrus). All non-errors are logged as debug to keep the logs quiet, errors are still logged as errors.

```go

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

```