repositorypackage
0.1.0
Repository: https://github.com/chaos-mesh/fx-logr.git
Documentation: pkg.go.dev
# README
fx-logr
fxevent logr adapter.
Installation
go get github.com/chaos-mesh/fx-logr
How to use
import (
"go.uber.org/fx"
fxlogr "github.com/chaos-mesh/fx-logr"
)
func main() {
fx.New(
fx.WithLogger(
fxlogr.WithLogr(&logger)
),
License
Licensed under the Apache License, Version 2.0.
This adapter is inspired by the fxevent zap adapter (https://github.com/uber-go/fx/blob/v1.19.2/fxevent/zap.go) and https://github.com/ipfans/fxlogger (zerolog adapter). Thanks for the great work!