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

Method setDefaultMethodLogger

internal/binarylog/binarylog.go:113–119  ·  view source on GitHub ↗

Set method logger for "*".

(ml *MethodLoggerConfig)

Source from the content-addressed store, hash-verified

111
112// Set method logger for "*".
113func (l *logger) setDefaultMethodLogger(ml *MethodLoggerConfig) error {
114 if l.config.All != nil {
115 return fmt.Errorf("conflicting global rules found")
116 }
117 l.config.All = ml
118 return nil
119}
120
121// Set method logger for "service/*".
122//

Callers 1

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected