Documentation ¶
Overview ¶
Package logs 日志.
使用 zap 日志.
Index ¶
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func DPanicw(msg string, keysAndValues ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Desugar() *zap.Logger
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func GetLog() *zap.SugaredLogger
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func LogName(paths ...string) string
- func NewDebug() *zap.Logger
- func NewInfo() *zap.Logger
- func NewRotate(config *lumberjack.Logger) *zap.Logger
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func RotateLog(paths ...string)
- func SetInfoLevel()
- func Sync()
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLog ¶ added in v0.2.11
func GetLog() *zap.SugaredLogger
func SetInfoLevel ¶
func SetInfoLevel()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.