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

Function NewLoggerV2WithVerbosity

grpclog/loggerv2.go:54–56  ·  view source on GitHub ↗

NewLoggerV2WithVerbosity creates a loggerV2 with the provided writers and verbosity level.

(infoW, warningW, errorW io.Writer, v int)

Source from the content-addressed store, hash-verified

52// NewLoggerV2WithVerbosity creates a loggerV2 with the provided writers and
53// verbosity level.
54func NewLoggerV2WithVerbosity(infoW, warningW, errorW io.Writer, v int) LoggerV2 {
55 return internal.NewLoggerV2(infoW, warningW, errorW, internal.LoggerV2Config{Verbosity: v})
56}
57
58// newLoggerV2 creates a loggerV2 to be used as default logger.
59// All logs are written to stderr.

Callers

nothing calls this directly

Calls 1

NewLoggerV2Function · 0.92

Tested by

no test coverage detected