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

Method Infof

internal/grpclog/prefix_logger.go:38–46  ·  view source on GitHub ↗

Infof does info logging.

(format string, args ...any)

Source from the content-addressed store, hash-verified

36
37// Infof does info logging.
38func (pl *PrefixLogger) Infof(format string, args ...any) {
39 if pl != nil {
40 // Handle nil, so the tests can pass in a nil logger.
41 format = pl.prefix + format
42 pl.logger.InfoDepth(1, fmt.Sprintf(format, args...))
43 return
44 }
45 grpclog.InfoDepth(1, fmt.Sprintf(format, args...))
46}
47
48// Warningf does warning logging.
49func (pl *PrefixLogger) Warningf(format string, args ...any) {

Callers

nothing calls this directly

Calls 2

InfoDepthFunction · 0.92
InfoDepthMethod · 0.65

Tested by

no test coverage detected