A wrapper for zerolog with a simplified API that encourages passing the logger through the context.
Provides JSON (default) and plain text output.
The library implements grpclog.LoggerV2.
package main
import (
"os"
"github.com/cdnnow-pro/go-log"
"google.golang.org/grpc/grpclog"
)
func init() {
grpclog.SetLoggerV2(log.NewGrpcLogger(log.InfoLevel,
log.WithGrpcOutput(os.Stderr),
))
}