Documentation ¶
Index ¶
- Variables
- func Debug(msg string, fields ...zap.Field)
- func Enable(level zapcore.Level) bool
- func EnableDebug() bool
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func Panic(msg string, fields ...zap.Field)
- func SetLogLevel(level zapcore.Level)
- func Warn(msg string, fields ...zap.Field)
- func WithName(name string) *zap.Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger *zap.Logger
)
全局日志
Functions ¶
func EnableDebug ¶
func EnableDebug() bool
func SetLogLevel ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.