Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Init()
- func InitCmdSugar(ws zapcore.WriteSyncer)
- func Logger() *zap.Logger
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Sugar() *zap.SugaredLogger
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type CmdSugarLogger
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sugar ¶
func Sugar() *zap.SugaredLogger
Types ¶
type CmdSugarLogger ¶
type CmdSugarLogger struct { *zap.SugaredLogger // contains filtered or unexported fields }
CmdSugarLogger wraps zap.SugaredLogger and zapcore.WriteSyncer in order to use Sugar while being able to use low-level writers.
func CmdSugar ¶
func CmdSugar() *CmdSugarLogger
func (*CmdSugarLogger) Print ¶
func (log *CmdSugarLogger) Print(s string)
Click to show internal directories.
Click to hide internal directories.