Documentation ¶
Overview ¶
Package zapgrpc provides a logger that is compatible with grpclog.
Index ¶
- type Logger
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoln(args ...interface{})
- func (l *Logger) Print(args ...interface{})deprecated
- func (l *Logger) Printf(format string, args ...interface{})deprecated
- func (l *Logger) Println(args ...interface{})deprecated
- func (l *Logger) V(level int) bool
- func (l *Logger) Warning(args ...interface{})
- func (l *Logger) Warningf(format string, args ...interface{})
- func (l *Logger) Warningln(args ...interface{})
- type Option
- func WithDebug() Optiondeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger adapts zap's Logger to be compatible with grpclog.LoggerV2 and the deprecated grpclog.Logger.
func (*Logger) Error ¶ added in v1.17.0
func (l *Logger) Error(args ...interface{})
Error implements grpclog.LoggerV2.
func (*Logger) Errorln ¶ added in v1.17.0
func (l *Logger) Errorln(args ...interface{})
Errorln implements grpclog.LoggerV2.
func (*Logger) Fatal ¶
func (l *Logger) Fatal(args ...interface{})
Fatal implements grpclog.LoggerV2.
func (*Logger) Fatalln ¶
func (l *Logger) Fatalln(args ...interface{})
Fatalln implements grpclog.LoggerV2.
func (*Logger) Info ¶ added in v1.17.0
func (l *Logger) Info(args ...interface{})
Info implements grpclog.LoggerV2.
func (*Logger) Infoln ¶ added in v1.17.0
func (l *Logger) Infoln(args ...interface{})
Infoln implements grpclog.LoggerV2.
func (*Logger) Print
deprecated
func (l *Logger) Print(args ...interface{})
Print implements grpclog.Logger.
Deprecated: use Logger.Info.
func (*Logger) Printf
deprecated
Printf implements grpclog.Logger.
Deprecated: use Logger.Infof.
func (*Logger) Println
deprecated
func (l *Logger) Println(args ...interface{})
Println implements grpclog.Logger.
Deprecated: use Logger.Info.
func (*Logger) Warning ¶ added in v1.17.0
func (l *Logger) Warning(args ...interface{})
Warning implements grpclog.LoggerV2.
Click to show internal directories.
Click to hide internal directories.