Documentation
¶
Index ¶
- Constants
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func DPanicln(args ...interface{})
- func DPanicw(msg string, keysAndValues ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugln(args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorln(args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func FDPanic(msg string, fields ...zapcore.Field)
- func FDebug(msg string, fields ...zapcore.Field)
- func FError(msg string, fields ...zapcore.Field)
- func FFatal(msg string, fields ...zapcore.Field)
- func FInfo(msg string, fields ...zapcore.Field)
- func FPanic(msg string, fields ...zapcore.Field)
- func FWarn(msg string, fields ...zapcore.Field)
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalln(args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infoln(args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func InitZlog(cfg ZlogConfig)
- func L() *zap.Logger
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicln(args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func SL() *zap.SugaredLogger
- func Sync() error
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnln(args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Level
- type Logger
- type ZlogConfig
Constants ¶
View Source
const ( DebugLevel = zapcore.DebugLevel InfoLevel = zapcore.InfoLevel WarnLevel = zapcore.WarnLevel ErrorLevel = zapcore.ErrorLevel DPanicLevel = zapcore.DPanicLevel PanicLevel = zapcore.PanicLevel FatalLevel = zapcore.FatalLevel )
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(args ...interface{})
-------------------- slogger functions mapping --------------------
func InitZlog ¶
func InitZlog(cfg ZlogConfig)
func SL ¶
func SL() *zap.SugaredLogger
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewWithBufferedWriteSyncer ¶
func NewWithBufferedWriteSyncer(writeSyncer *zapcore.BufferedWriteSyncer, level Level) *Logger
Click to show internal directories.
Click to hide internal directories.