Documentation ¶
Index ¶
- func NewGinxConsoleLog(params ...interface{}) (interface{}, error)
- func NewGinxCustomLog(params ...interface{}) (interface{}, error)
- func NewGinxRotateLog(params ...interface{}) (interface{}, error)
- func NewGinxSingleLog(params ...interface{}) (interface{}, error)
- type GinxConsoleLog
- type GinxCustomLog
- type GinxLog
- func (log *GinxLog) Debug(ctx context.Context, msg string, fields map[string]interface{})
- func (log *GinxLog) Error(ctx context.Context, msg string, fields map[string]interface{})
- func (log *GinxLog) Fatal(ctx context.Context, msg string, fields map[string]interface{})
- func (log *GinxLog) Info(ctx context.Context, msg string, fields map[string]interface{})
- func (log *GinxLog) IsLevelEnable(level contract.LogLevel) bool
- func (log *GinxLog) Panic(ctx context.Context, msg string, fields map[string]interface{})
- func (log *GinxLog) SetCtxFielder(handler contract.CtxFielder)
- func (log *GinxLog) SetFormatter(formatter contract.Formatter)
- func (log *GinxLog) SetLevel(level contract.LogLevel)
- func (log *GinxLog) SetOutput(output io.Writer)
- func (log *GinxLog) Trace(ctx context.Context, msg string, fields map[string]interface{})
- func (log *GinxLog) Warn(ctx context.Context, msg string, fields map[string]interface{})
- type GinxRotateLog
- type GinxSingleLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGinxConsoleLog ¶
func NewGinxConsoleLog(params ...interface{}) (interface{}, error)
NewGinxConsoleLog 实例化GinxConsoleLog
func NewGinxCustomLog ¶
func NewGinxCustomLog(params ...interface{}) (interface{}, error)
func NewGinxRotateLog ¶
func NewGinxRotateLog(params ...interface{}) (interface{}, error)
NewGinxRotateLog 实例化GinxRotateLog
func NewGinxSingleLog ¶
func NewGinxSingleLog(params ...interface{}) (interface{}, error)
NewGinxSingleLog params sequence: level, ctxFielder, Formatter, map[string]interface(folder/file)
Types ¶
type GinxCustomLog ¶
type GinxCustomLog struct {
GinxLog
}
type GinxLog ¶
type GinxLog struct {
// contains filtered or unexported fields
}
GinxLog 的通用实例
func (*GinxLog) IsLevelEnable ¶
IsLevelEnable 判断这个级别是否可以打印
func (*GinxLog) SetCtxFielder ¶
func (log *GinxLog) SetCtxFielder(handler contract.CtxFielder)
SetCxtFielder will get fields from context
func (*GinxLog) SetFormatter ¶
SetFormatter will set formatter handler will covert data to string for recording
type GinxRotateLog ¶
type GinxRotateLog struct { GinxLog // contains filtered or unexported fields }
GinxRotateLog 代表会进行切割的日志文件存储
type GinxSingleLog ¶
type GinxSingleLog struct { GinxLog // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.