Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Get() *zap.SugaredLogger
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Init(level Level)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(template string, args ...interface{})
Debugf logs a formatted debug message.
func Errorf ¶
func Errorf(template string, args ...interface{})
Errorf logs a formatted error message.
func Get ¶
func Get() *zap.SugaredLogger
Get returns the global logger. If Init hasn't been called, it returns a no-op logger.
Types ¶
Click to show internal directories.
Click to hide internal directories.