Documentation
¶
Index ¶
- func NewHadeConsoleLog(params ...interface{}) (interface{}, error)
- func NewHadeRotateLog(params ...interface{}) (interface{}, error)
- func NewHadeSingleLog(params ...interface{}) (interface{}, error)
- type HadeConsoleLog
- type HadeLog
- func (log *HadeLog) Debug(ctx context.Context, msg string, fields map[string]interface{})
- func (log *HadeLog) Error(ctx context.Context, msg string, fields map[string]interface{})
- func (log *HadeLog) Fatal(ctx context.Context, msg string, fields map[string]interface{})
- func (log *HadeLog) Info(ctx context.Context, msg string, fields map[string]interface{})
- func (log *HadeLog) IsLevelEnable(level contract.LogLevel) bool
- func (log *HadeLog) Panic(ctx context.Context, msg string, fields map[string]interface{})
- func (log *HadeLog) SetCxtFielder(handler contract.CtxFielder)
- func (log *HadeLog) SetFormatter(formatter contract.Formatter)
- func (log *HadeLog) SetLevel(level contract.LogLevel)
- func (log *HadeLog) SetOutput(output io.Writer)
- func (log *HadeLog) Trace(ctx context.Context, msg string, fields map[string]interface{})
- func (log *HadeLog) Warn(ctx context.Context, msg string, fields map[string]interface{})
- type HadeRotateLog
- type HadeSingleLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHadeConsoleLog ¶
func NewHadeConsoleLog(params ...interface{}) (interface{}, error)
func NewHadeRotateLog ¶
func NewHadeRotateLog(params ...interface{}) (interface{}, error)
func NewHadeSingleLog ¶
func NewHadeSingleLog(params ...interface{}) (interface{}, error)
NewHadeSingleLog params sequence: level, ctxFielder, Formatter, map[string]interface(folder/file)
Types ¶
type HadeConsoleLog ¶
type HadeConsoleLog struct {
HadeLog
}
type HadeLog ¶
type HadeLog struct {
// contains filtered or unexported fields
}
func (*HadeLog) SetCxtFielder ¶
func (log *HadeLog) SetCxtFielder(handler contract.CtxFielder)
SetCxtFielder will get fields from context
func (*HadeLog) SetFormatter ¶
SetFormatter will set formatter handler will covert data to string for recording
type HadeRotateLog ¶
type HadeRotateLog struct {
HadeLog
// contains filtered or unexported fields
}
func (*HadeRotateLog) SetDateFormat ¶
func (l *HadeRotateLog) SetDateFormat(dateFormat string)
func (*HadeRotateLog) SetFile ¶
func (l *HadeRotateLog) SetFile(file string)
func (*HadeRotateLog) SetFolder ¶
func (l *HadeRotateLog) SetFolder(folder string)
func (*HadeRotateLog) SetMaxFiles ¶
func (l *HadeRotateLog) SetMaxFiles(maxFiles int)
type HadeSingleLog ¶
type HadeSingleLog struct {
HadeLog
// contains filtered or unexported fields
}
func (*HadeSingleLog) SetFile ¶
func (l *HadeSingleLog) SetFile(file string)
func (*HadeSingleLog) SetFolder ¶
func (l *HadeSingleLog) SetFolder(folder string)
Click to show internal directories.
Click to hide internal directories.