Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/takt-corp/fx-logrus
- Owner: takt-corp
- License: mit
- Created: 2022-10-27T16:02:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T19:38:07.000Z (about 2 years ago)
- Last Synced: 2023-08-18T09:17:03.297Z (over 1 year ago)
- Topics: fx, go, golang, logrus, uber-go
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()```