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

Method Errorf

internal/grpclog/prefix_logger.go:59–66  ·  view source on GitHub ↗

Errorf does error logging.

(format string, args ...any)

Source from the content-addressed store, hash-verified

57
58// Errorf does error logging.
59func (pl *PrefixLogger) Errorf(format string, args ...any) {
60 if pl != nil {
61 format = pl.prefix + format
62 pl.logger.ErrorDepth(1, fmt.Sprintf(format, args...))
63 return
64 }
65 grpclog.ErrorDepth(1, fmt.Sprintf(format, args...))
66}
67
68// V reports whether verbosity level l is at least the requested verbose level.
69func (pl *PrefixLogger) V(l int) bool {

Callers

nothing calls this directly

Calls 2

ErrorDepthFunction · 0.92
ErrorDepthMethod · 0.65

Tested by

no test coverage detected