Documentation ¶
Index ¶
- func NewJadeConsoleLog(params ...interface{}) (interface{}, error)
- func NewJadeCustomLog(params ...interface{}) (interface{}, error)
- func NewJadeRotateLog(params ...interface{}) (interface{}, error)
- func NewJadeSingleLog(params ...interface{}) (interface{}, error)
- type JadeConsoleLog
- type JadeCustomLog
- type JadeLog
- func (log *JadeLog) Debug(ctx context.Context, msg string, fields map[string]interface{})
- func (log *JadeLog) Error(ctx context.Context, msg string, fields map[string]interface{})
- func (log *JadeLog) Fatal(ctx context.Context, msg string, fields map[string]interface{})
- func (log *JadeLog) Info(ctx context.Context, msg string, fields map[string]interface{})
- func (log *JadeLog) IsLevelEnable(level contract.LogLevel) bool
- func (log *JadeLog) Panic(ctx context.Context, msg string, fields map[string]interface{})
- func (log *JadeLog) SetCtxFielder(handler contract.CtxFielder)
- func (log *JadeLog) SetFormatter(formatter contract.Formatter)
- func (log *JadeLog) SetLevel(level contract.LogLevel)
- func (log *JadeLog) SetOutput(output io.Writer)
- func (log *JadeLog) Trace(ctx context.Context, msg string, fields map[string]interface{})
- func (log *JadeLog) Warn(ctx context.Context, msg string, fields map[string]interface{})
- type JadeRotateLog
- type JadeSingleLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJadeConsoleLog ¶
func NewJadeConsoleLog(params ...interface{}) (interface{}, error)
func NewJadeCustomLog ¶
func NewJadeCustomLog(params ...interface{}) (interface{}, error)
func NewJadeRotateLog ¶
func NewJadeRotateLog(params ...interface{}) (interface{}, error)
func NewJadeSingleLog ¶
func NewJadeSingleLog(params ...interface{}) (interface{}, error)
Types ¶
type JadeConsoleLog ¶
type JadeConsoleLog struct {
JadeLog
}
type JadeCustomLog ¶
type JadeCustomLog struct {
JadeLog
}
type JadeLog ¶
type JadeLog struct {
// contains filtered or unexported fields
}
func (*JadeLog) IsLevelEnable ¶
IsLevelEnable 判断这个级别是否可以打印
func (*JadeLog) SetCtxFielder ¶
func (log *JadeLog) SetCtxFielder(handler contract.CtxFielder)
SetCxtFielder will get fields from context
func (*JadeLog) SetFormatter ¶
SetFormatter will set formatter handler will covert data to string for recording
type JadeRotateLog ¶
type JadeRotateLog struct { JadeLog // contains filtered or unexported fields }
type JadeSingleLog ¶
type JadeSingleLog struct { JadeLog // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.