Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2022 Changes in this version + const KindField + const SystemField + var DefaultDurationToField = DurationToTimeMillisField + var JSONPbMarshaller grpc_logging.JsonPbMarshaler = &jsonpb.Marshaler + func DefaultClientCodeToLevel(code codes.Code) zerolog.Level + func DefaultCodeToLevel(code codes.Code) zerolog.Level + func DefaultMessageProducer(ctx context.Context, format string, level zerolog.Level, code codes.Code, ...) + func DurationToDurationField(duration time.Duration) (key string, value interface{}) + func DurationToTimeMillisField(duration time.Duration) (key string, value interface{}) + func PayloadStreamClientInterceptor(logger *zerolog.Logger, decider grpc_logging.ClientPayloadLoggingDecider) grpc.StreamClientInterceptor + func PayloadStreamServerInterceptor(logger *zerolog.Logger, decider grpc_logging.ServerPayloadLoggingDecider) grpc.StreamServerInterceptor + func PayloadUnaryClientInterceptor(logger *zerolog.Logger, decider grpc_logging.ClientPayloadLoggingDecider) grpc.UnaryClientInterceptor + func PayloadUnaryServerInterceptor(logger *zerolog.Logger, decider grpc_logging.ServerPayloadLoggingDecider) grpc.UnaryServerInterceptor + func ReplaceGrpcLoggerV2(logger *zerolog.Logger) + func StreamClientInterceptor(logger *zerolog.Logger, opts ...Option) grpc.StreamClientInterceptor + func StreamServerInterceptor(logger *zerolog.Logger, opts ...Option) grpc.StreamServerInterceptor + func UnaryClientInterceptor(logger *zerolog.Logger, opts ...Option) grpc.UnaryClientInterceptor + func UnaryServerInterceptor(logger *zerolog.Logger, opts ...Option) grpc.UnaryServerInterceptor + type CodeToLevel func(code codes.Code) zerolog.Level + type DurationToField func(duration time.Duration) (key string, value interface{}) + type MessageProducer func(ctx context.Context, format string, level zerolog.Level, code codes.Code, ...) + type Option func(*options) + func WithCodes(f grpc_logging.ErrorToCode) Option + func WithDecider(f grpc_logging.Decider) Option + func WithDurationField(f DurationToField) Option + func WithLevels(f CodeToLevel) Option + func WithMessageProducer(f MessageProducer) Option