kubernetes/vendor/go.uber.org/zap/zapgrpc/zapgrpc.go

const grpcLvlInfo

const grpcLvlWarn

const grpcLvlError

const grpcLvlFatal

var _grpcToZapLevel

type Option

type optionFunc

func (f optionFunc) apply(log *Logger) {}

// WithDebug configures a Logger to print at zap's DebugLevel instead of
// InfoLevel.
// It only affects the Printf, Println and Print methods, which are only used in the gRPC v1 grpclog.Logger API.
//
// Deprecated: use grpclog.SetLoggerV2() for v2 API.
func WithDebug() Option {}

// withWarn redirects the fatal level to the warn level, which makes testing
// easier. This is intentionally unexported.
func withWarn() Option {}

// NewLogger returns a new Logger.
func NewLogger(l *zap.Logger, options ...Option) *Logger {}

type printer

func (v *printer) Print(args ...interface{}

func (v *printer) Printf(format string, args ...interface{}

func (v *printer) Println(args ...interface{}

type Logger

// Print implements grpclog.Logger.
//
// Deprecated: use [Logger.Info].
func (l *Logger) Print(args ...interface{}

// Printf implements grpclog.Logger.
//
// Deprecated: use [Logger.Infof].
func (l *Logger) Printf(format string, args ...interface{}

// Println implements grpclog.Logger.
//
// Deprecated: use [Logger.Info].
func (l *Logger) Println(args ...interface{}

// Info implements grpclog.LoggerV2.
func (l *Logger) Info(args ...interface{}

// Infoln implements grpclog.LoggerV2.
func (l *Logger) Infoln(args ...interface{}

// Infof implements grpclog.LoggerV2.
func (l *Logger) Infof(format string, args ...interface{}

// Warning implements grpclog.LoggerV2.
func (l *Logger) Warning(args ...interface{}

// Warningln implements grpclog.LoggerV2.
func (l *Logger) Warningln(args ...interface{}

// Warningf implements grpclog.LoggerV2.
func (l *Logger) Warningf(format string, args ...interface{}

// Error implements grpclog.LoggerV2.
func (l *Logger) Error(args ...interface{}

// Errorln implements grpclog.LoggerV2.
func (l *Logger) Errorln(args ...interface{}

// Errorf implements grpclog.LoggerV2.
func (l *Logger) Errorf(format string, args ...interface{}

// Fatal implements grpclog.LoggerV2.
func (l *Logger) Fatal(args ...interface{}

// Fatalln implements grpclog.LoggerV2.
func (l *Logger) Fatalln(args ...interface{}

// Fatalf implements grpclog.LoggerV2.
func (l *Logger) Fatalf(format string, args ...interface{}

// V implements grpclog.LoggerV2.
func (l *Logger) V(level int) bool {}

func sprintln(args []interface{}