package
0.0.0-20220801155425-745208ba6c89
Repository: https://github.com/ppcamp/go-grpc.git
Documentation: pkg.go.dev
# Functions
StreamInterceptor will use the log param to log the request duration.
UnaryInterceptor will use the log param to log the request duration.
# Constants
No description provided by the author
# Structs
LogrusLogger implements the V method of the grpclog for the *logrus.Entry
Example log := logrus.StandardLogger() log.SetLevel(logrus.DebugLevel) log.SetFormatter( &logrus.TextFormatter{ ForceColors: true, DisableColors: false, TimestampFormat: "2006-01-02 15:04:05", FullTimestamp: true, QuoteEmptyFields: true, PadLevelText: true, }, ) grpclog.SetLoggerV2(&log.LogrusLogger{l}).