Documentation
¶
Overview ¶
Package grpclog contains gRPC logging utilities useful to binding implementations.
# Usage: Pass the following grpc dial options when creating a gRPC client connection:
grpcLoggingDialOpts := []grpc.DialOption{
grpc.WithChainUnaryInterceptor(grpclog.UnaryClientInterceptor()),
grpc.WithChainStreamInterceptor(grpclog.StreamClientInterceptor()),
}
# Where do the logs go? RPCs made using connections established with these dial options will be logged to:
- Files in the directory specified by the TEST_UNDECLARED_OUTPUTS_DIR environment variable, if set. Otherwise, files in the system temporary directory which is '/tmp' for unix/linux based systems.
- The standard log output at verbosity level 3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor() grpc.StreamClientInterceptor
StreamClientInterceptor returns a StreamClientInterceptor function.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor() grpc.UnaryClientInterceptor
UnaryClientInterceptor returns a UnaryClientInterceptor function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.