# Packages

`ctxkit` is a ctxlogger that is backed by go-kit It accepts a user-configured `log.Logger` that will be used for logging.

# Functions

DefaultClientCodeToLevel is the default implementation of gRPC return codes to log levels for client side.
DefaultCodeToLevel is the default implementation of gRPC return codes and interceptor log level for server side.
DurationToDurationField uses a Duration field to log the request duration and leaves it up to Log's encoder settings to determine how that is output.
DurationToTimeMillisField converts the duration to milliseconds and uses the key `grpc.time_ms`.
PayloadStreamClientInterceptor returns a new streaming client interceptor that logs the paylods of requests and responses.
PayloadStreamServerInterceptor returns a new server server interceptors that logs the payloads of requests.
PayloadUnaryClientInterceptor returns a new unary client interceptor that logs the paylods of requests and responses.
PayloadUnaryServerInterceptor returns a new unary server interceptors that logs the payloads of requests.
StreamClientInterceptor returns a new streaming client interceptor that optionally logs the execution of external gRPC calls.
StreamServerInterceptor returns a new stream server interceptors that adds kit.Logger to the context.
UnaryClientInterceptor returns a new unary client interceptor that optionally logs the execution of external gRPC calls.
UnaryServerInterceptor returns a new unary server interceptors that adds kit.Logger to the context.
WithCodes customizes the function for mapping errors to error codes.
WithDecider customizes the function for deciding if the gRPC interceptor logs should log.
WithDurationField customizes the function for mapping request durations to log fields.
WithLevels customizes the function for mapping gRPC return codes and interceptor log level statements.
WithTimestampFormat customizes the timestamps emitted in the log fields.

# Variables

DefaultDurationToField is the default implementation of converting request duration to a kit field.
JsonPbMarshaller is the marshaller used for serializing protobuf messages.
ServerField is used in every server-side log statement made through grpc_zap.Can be overwritten before initialization.
SystemField is used in every log statement made through grpc_zap.

# Type aliases

CodeToLevel function defines the mapping between gRPC return codes and interceptor log level.
DurationToField function defines how to produce duration fields for logging.
No description provided by the author