https://github.com/ipfans/fxlogger
fxevent zerolog adoptor for go-uber/fx 1.14.0+
https://github.com/ipfans/fxlogger
Last synced: 12 months ago
JSON representation
fxevent zerolog adoptor for go-uber/fx 1.14.0+
- Host: GitHub
- URL: https://github.com/ipfans/fxlogger
- Owner: ipfans
- License: mit
- Created: 2021-08-13T14:13:05.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T13:54:21.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T03:22:37.956Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fxlogger
[](https://github.com/ipfans/fxlogger/blob/main/LICENSE)
[](http://godoc.org/github.com/ipfans/fxlogger)
[](https://github.com/ipfans/fxlogger/releases)
[](https://github.com/ipfans/fxlogger/blob/main/go.mod)
[](https://goreportcard.com/report/github.com/ipfans/fxlogger)
[](https://github.com/ipfans/fxlogger/issues)
fxevent zerolog adoptor for go-uber/fx 1.14.0+.
## Installation
```
go get github.com/ipfans/fxlogger@latest
```
## Usage
```go
fx.New(fx.WithLogger(fxlogger.Default()))
// or
fx.New(fx.WithLogger(fxlogger.WithZerolog(zerolog.New(os.Stdout))))
```
## Contributors