Documentation
¶
Index ¶
- func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func NewNiceLog(params ...interface{}) (interface{}, error)
- func Zap(config contract.Config) (logger *zap.Logger)
- type NiceLog
- func (log *NiceLog) Debug(msg string, fields ...zapcore.Field)
- func (log *NiceLog) Error(msg string, fields ...zapcore.Field)
- func (log *NiceLog) Fatal(msg string, fields ...zapcore.Field)
- func (log *NiceLog) GetZap() *zap.Logger
- func (log *NiceLog) Info(msg string, fields ...zapcore.Field)
- func (log *NiceLog) Panic(msg string, fields ...zapcore.Field)
- func (log *NiceLog) Trace(msg string, fields ...zapcore.Field)
- func (log *NiceLog) Warn(msg string, fields ...zapcore.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomTimeEncoder ¶
func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
CustomTimeEncoder 自定义日志输出时间格式
func NewNiceLog ¶
func NewNiceLog(params ...interface{}) (interface{}, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.