grpclog

package
v0.0.0-...-52fa7fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCodeToLevel

func DefaultCodeToLevel(code codes.Code) zapcore.Level

DefaultCodeToLevel returns zap log level by GRPC code

func StreamServerInterceptor

func StreamServerInterceptor(lg *zap.Logger) grpc.StreamServerInterceptor

StreamServerInterceptor returns stream interceptor to log request

func UnaryServerInterceptor

func UnaryServerInterceptor(lg *zap.Logger) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns unary interceptor to log request

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL