Documentation ¶
Index ¶
- func Debugf(template string, args ...interface{})
- func Debugw(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(template string, args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(template string, args ...interface{})
- func InitGlobalLogger(loglevel config.LogLevel)
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(template string, args ...interface{})
- func SetGlobalLogger(l *zap.SugaredLogger)
- func Sync() error
- func Warnf(template string, args ...interface{})
- func Warnw(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(template string, args ...interface{})
Debugf uses fmt.Sprintf to log a templated message.
func Debugw ¶
func Debugw(template string, args ...interface{})
Debugw uses fmt.Sprintf to log a templated message.
func Errorf ¶
func Errorf(template string, args ...interface{})
Errorf uses fmt.Sprintf to log a templated message.
func Errorw ¶
func Errorw(template string, args ...interface{})
Errorw uses fmt.Sprintf to log a templated message.
func Fatalf ¶
func Fatalf(template string, args ...interface{})
Fatalf uses fmt.Sprintf to log a templated message.
func Infof ¶
func Infof(template string, args ...interface{})
Infof uses fmt.Sprintf to log a templated message.
func Infow ¶
func Infow(template string, args ...interface{})
Infow uses fmt.Sprintf to log a templated message.
func InitGlobalLogger ¶
InitGlobalLogger creates a new SugaredLogger and assigns it as the global logger
func Panicf ¶
func Panicf(template string, args ...interface{})
Panicf uses fmt.Sprintf to log a templated message.
func Panicw ¶
func Panicw(template string, args ...interface{})
Panicw uses fmt.Sprintf to log a templated message.
func SetGlobalLogger ¶
func SetGlobalLogger(l *zap.SugaredLogger)
SetGlobalLogger takes a Logger instance as the input and sets it as the global logger, useful for testing.
Types ¶
This section is empty.