Skip to content

cdnnow-pro/go-log

Repository files navigation

Logger

A wrapper for zerolog with a simplified API that encourages passing the logger through the context.

Provides JSON (default) and plain text output.

grpclog

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),
	))
}

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages