Documentation
¶
Index ¶
- func NewAnanConsoleLog(params ...interface{}) (interface{}, error)
- func NewAnanCustomLog(params ...interface{}) (interface{}, error)
- func NewAnanRotateLog(params ...interface{}) (interface{}, error)
- func NewAnanSingleLog(params ...interface{}) (interface{}, error)
- type AnanConsoleLog
- type AnanCustomLog
- type AnanLog
- func (log *AnanLog) Debug(ctx context.Context, msg string, fields map[string]interface{})
- func (log *AnanLog) Error(ctx context.Context, msg string, fields map[string]interface{})
- func (log *AnanLog) Fatal(ctx context.Context, msg string, fields map[string]interface{})
- func (log *AnanLog) Info(ctx context.Context, msg string, fields map[string]interface{})
- func (log *AnanLog) IsLevelEnable(level contract.LogLevel) bool
- func (log *AnanLog) Panic(ctx context.Context, msg string, fields map[string]interface{})
- func (log *AnanLog) SetCtxFielder(hanlder contract.CtxFielder)
- func (log *AnanLog) SetFormatter(formatter contract.Formatter)
- func (log *AnanLog) SetLevel(level contract.LogLevel)
- func (log *AnanLog) SetOutput(output io.Writer)
- func (log *AnanLog) Trace(ctx context.Context, msg string, fields map[string]interface{})
- func (log *AnanLog) Warn(ctx context.Context, msg string, fields map[string]interface{})
- type AnanRotateLog
- type AnanSingleLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnanConsoleLog ¶
func NewAnanConsoleLog(params ...interface{}) (interface{}, error)
func NewAnanCustomLog ¶
func NewAnanCustomLog(params ...interface{}) (interface{}, error)
自定义输出地方的日志
func NewAnanRotateLog ¶
func NewAnanRotateLog(params ...interface{}) (interface{}, error)
NewAnanRotateLog 实例化AnanRotateLog
func NewAnanSingleLog ¶
func NewAnanSingleLog(params ...interface{}) (interface{}, error)
Types ¶
type AnanConsoleLog ¶
type AnanConsoleLog struct {
AnanLog
}
type AnanCustomLog ¶
type AnanCustomLog struct {
AnanLog
}
type AnanLog ¶
type AnanLog struct {
// contains filtered or unexported fields
}
func (*AnanLog) IsLevelEnable ¶
判断这个级别是否可以打印
func (*AnanLog) SetCtxFielder ¶
func (log *AnanLog) SetCtxFielder(hanlder contract.CtxFielder)
func (*AnanLog) SetFormatter ¶
type AnanRotateLog ¶
type AnanRotateLog struct {
AnanLog
// contains filtered or unexported fields
}
AnanRotateLog 代表会进行切割的日志文件存储
type AnanSingleLog ¶
type AnanSingleLog struct {
AnanLog
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.