Versions in this module Expand all Collapse all v1 v1.4.0 May 16, 2023 Changes in this version + var DefaultDurationToField = DurationToTimeMillisField + var ServerField = "server" + var SystemField = "grpc" + func DefaultCodeToLevel(code codes.Code) byte + func DefaultMessageProducer(ctx context.Context, msg string, level byte, code codes.Code, err error, ...) + func DurationToDurationField(duration time.Duration) *lager.KVPairs + func DurationToTimeMillisField(duration time.Duration) *lager.KVPairs + func Extract(ctx context.Context, lev byte) lager.Lager + func PayloadUnaryServerInterceptor(decider ServerPayloadLoggingDecider) grpc.UnaryServerInterceptor + func TagsToPairs(ctx context.Context) context.Context + func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor + type CodeToLevel func(code codes.Code) byte + type DurationToPairs func(duration time.Duration) lager.AMap + type JSONPbFormater interface + Format func(m proto.Message) string + var JSONPbFormatter JSONPbFormater = &protojson.MarshalOptions{} + type MessageProducer func(ctx context.Context, msg string, level byte, code codes.Code, err error, ...) + type Option func(*options) + func WithCodes(f grpc_logging.ErrorToCode) Option + func WithDecider(f grpc_logging.Decider) Option + func WithDurationField(f DurationToPairs) Option + func WithLevels(f CodeToLevel) Option + func WithMessageProducer(f MessageProducer) Option + func WithTimestampFormat(format string) Option + type ServerPayloadLoggingDecider func(ctx context.Context, fullMethodName string, servingObject interface{}) bool