Back to

Package logger

Latest Go to latest

The latest major version is .

Published: Mar 4, 2020 | License: MIT | Module:



var PlainSingleton *zap.Logger
var Singleton *zap.SugaredLogger

func DPanic

func DPanic(args ...interface{})

func DPanicf

func DPanicf(template string, args ...interface{})

func DPanicw

func DPanicw(msg string, keysAndValues ...interface{})

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(template string, args ...interface{})

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Fatalw

func Fatalw(msg string, keysAndValues ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func Infow

func Infow(msg string, keysAndValues ...interface{})

func Instantiate

func Instantiate(logLevel string, disableStacktrace bool)

func InstantiateGRPC

func InstantiateGRPC()

func Level

func Level() zapcore.Level

func Panic

func Panic(args ...interface{})

func Panicf

func Panicf(template string, args ...interface{})

func Panicw

func Panicw(msg string, keysAndValues ...interface{})

func Sync

func Sync() error

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(template string, args ...interface{})

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

type GRPCLogger

type GRPCLogger struct {
	// contains filtered or unexported fields

func (*GRPCLogger) Error

func (g *GRPCLogger) Error(args ...interface{})

func (*GRPCLogger) Errorf

func (g *GRPCLogger) Errorf(format string, args ...interface{})

func (*GRPCLogger) Errorln

func (g *GRPCLogger) Errorln(args ...interface{})

func (*GRPCLogger) Fatal

func (g *GRPCLogger) Fatal(args ...interface{})

func (*GRPCLogger) Fatalf

func (g *GRPCLogger) Fatalf(format string, args ...interface{})

func (*GRPCLogger) Fatalln

func (g *GRPCLogger) Fatalln(args ...interface{})

func (*GRPCLogger) Info

func (g *GRPCLogger) Info(args ...interface{})

func (*GRPCLogger) Infof

func (g *GRPCLogger) Infof(format string, args ...interface{})

func (*GRPCLogger) Infoln

func (g *GRPCLogger) Infoln(args ...interface{})

func (*GRPCLogger) LogPanicHandler

func (g *GRPCLogger) LogPanicHandler(r interface{})

func (*GRPCLogger) V

func (g *GRPCLogger) V(l int) bool

func (*GRPCLogger) Warning

func (g *GRPCLogger) Warning(args ...interface{})

func (*GRPCLogger) Warningf

func (g *GRPCLogger) Warningf(format string, args ...interface{})

func (*GRPCLogger) Warningln

func (g *GRPCLogger) Warningln(args ...interface{})

type SugaredLogger

type SugaredLogger struct {

func Named

func Named(name string) *SugaredLogger

func (*SugaredLogger) Context

func (l *SugaredLogger) Context(context string) *zap.SugaredLogger

func (*SugaredLogger) Event

func (l *SugaredLogger) Event(event string) *zap.SugaredLogger

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier