Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func GetEncoder(levelEncoder zapcore.LevelEncoder) zapcore.Encoder
- func GetLogger() *zap.SugaredLogger
- func GetWriteSyncer(file string) zapcore.WriteSyncer
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Init(opts *Options)
- func NewLogger(file string, debug bool) *zap.Logger
- func Sync() error
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncoder ¶
func GetEncoder(levelEncoder zapcore.LevelEncoder) zapcore.Encoder
GetEncoder 自定义的Encoder
func GetLogger ¶
func GetLogger() *zap.SugaredLogger
func GetWriteSyncer ¶
func GetWriteSyncer(file string) zapcore.WriteSyncer
GetWriteSyncer 自定义的WriteSyncer
Types ¶
Click to show internal directories.
Click to hide internal directories.