{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package grpclogging\n\n## Constants\n\n```go\nconst DefaultPayloadLevel = zapcore.Level(zapcore.DebugLevel - 1)\n```\nDefaultPayloadLevel is default level to use when logging payloads\n\n## Functions\n\n```go\nfunc Error(err error) zapcore.Field\n```\n\n```go\nfunc Fields(ctx context.Context) []interface{}\n```\n\n```go\nfunc ProtoMessage(key string, val interface{}) zapcore.Field\n```\n\n```go\nfunc StreamServerInterceptor(logger *zap.Logger, opts ...Option) grpc.StreamServerInterceptor\n```\n\n```go\nfunc UnaryServerInterceptor(logger *zap.Logger, opts ...Option) grpc.UnaryServerInterceptor\n```\n\n```go\nfunc WithFields(ctx context.Context, fields []zapcore.Field) context.Context\n```\n\n```go\nfunc ZapFields(ctx context.Context) []zapcore.Field\n```\n\n## Types\n\n```go\ntype Leveler interface {\n\tLevel(ctx context.Context, fullMethod string) zapcore.Level\n}\n```\nLeveler returns a zap level to use when logging from a grpc interceptor.\n\n```go\ntype LevelerFunc func(ctx context.Context, fullMethod string) zapcore.Level\n```\n\n```go\nfunc (l LevelerFunc) Level(ctx context.Context, fullMethod string) zapcore.Level\n```\n\n```go\nfunc (l LevelerFunc) PayloadLevel(ctx context.Context, fullMethod string) zapcore.Level\n```\n\n```go\ntype Option func(o *options)\n```\n\n```go\nfunc WithLeveler(l Leveler) Option\n```\n\n```go\nfunc WithPayloadLeveler(l PayloadLeveler) Option\n```\n\n```go\ntype PayloadLeveler interface {\n\tPayloadLevel(ctx context.Context, fullMethod string) zapcore.Level\n}\n```\nPayloadLeveler gets the level to use when logging grpc message payloads.\n\n","path":"github.com/eric-erki/https-hyperledger.org/common/grpclogging","name":"grpclogging","synopsis":"","isRedistributable":true}
