logger

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerStreamInterceptor

func LoggerStreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

LoggerStreamInterceptor is a stream RPC server interceptor that handles cloud logging of stream RPC calls. TODO(logging): Implement structured logging with the following features:

  • Log stream method, duration, and status code
  • Log stream lifecycle events (start, end, error)
  • Support for correlation IDs from context
  • Integration with cloud logging services (CloudWatch, Stackdriver, etc.)

func LoggerUnaryInterceptor

func LoggerUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

LoggerUnaryInterceptor is a unary RPC server interceptor that handles cloud logging of unary RPC calls. TODO(logging): Implement structured logging with the following features:

  • Log request method, duration, and status code
  • Log request/response metadata (configurable)
  • Support for correlation IDs from context
  • Integration with cloud logging services (CloudWatch, Stackdriver, etc.)

Types

This section is empty.

Jump to

Keyboard shortcuts

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