Documentation ¶
Overview ¶
*
- @Time : 2020-04-26 19:57
- @Author : MassAdobe
- @Description: logs
*
Index ¶
- func BasicError(err interface{}) zap.Field
- func Desc(desc interface{}) zap.Field
- func Error(err error) zap.Field
- func InitLogger(path, serveName, level string, port uint64)
- func NewLogger(filePath, level string, maxSize, maxBackups, maxAge int, compress bool, ...)
- func SpecDesc(name string, desc interface{}) zap.Field
- type MyLog
- func (this *MyLog) Debug(msg string, contextAndFields ...interface{})
- func (this *MyLog) Error(msg string, err error, contextAndFields ...interface{})
- func (this *MyLog) GlobalError(msg string, contextAndFields ...interface{})
- func (this *MyLog) Info(msg string, contextAndFields ...interface{})
- func (this *MyLog) SysDebug(msg string, contextAndFields ...interface{})
- func (this *MyLog) SysError(msg string, err error, contextAndFields ...interface{})
- func (this *MyLog) SysInfo(msg string, contextAndFields ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MyLog ¶
type MyLog struct { ZapLog *zap.Logger Level zap.AtomicLevel }
*
- @Author: MassAdobe
- @TIME: 2020/12/17 6:17 下午
- @Description: 日志对象
*
var (
Lg MyLog
)
func (*MyLog) GlobalError ¶
*
- @Author: MassAdobe
- @TIME: 2020/12/17 7:52 下午
- @Description: 重写Global Error日志级别输出
*
func (*MyLog) SysDebug ¶ added in v1.3.2
*
- @Author: MassAdobe
- @TIME: 2020/12/17 7:52 下午
- @Description: 重写Debug日志级别输出(系统)
*
Click to show internal directories.
Click to hide internal directories.