grpclog

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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:

  1. 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.
  2. 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.

Jump to

Keyboard shortcuts

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