MCPcopy
hub / github.com/grpc/grpc-go / GetMethodLogger

Function GetMethodLogger

internal/binarylog/binarylog.go:68–73  ·  view source on GitHub ↗

GetMethodLogger returns the MethodLogger for the given methodName. methodName should be in the format of "/service/method". Each MethodLogger returned by this method is a new instance. This is to generate sequence id within the call.

(methodName string)

Source from the content-addressed store, hash-verified

66// Each MethodLogger returned by this method is a new instance. This is to
67// generate sequence id within the call.
68func GetMethodLogger(methodName string) MethodLogger {
69 if binLogger == nil {
70 return nil
71 }
72 return binLogger.GetMethodLogger(methodName)
73}
74
75func init() {
76 const envStr = "GRPC_BINARY_LOG_FILTER"

Callers 3

processUnaryRPCMethod · 0.92
processStreamingRPCMethod · 0.92

Calls 1

GetMethodLoggerMethod · 0.65

Tested by

no test coverage detected