Documentation ¶
Index ¶
- func NewWebConsoleLog(params ...any) (any, error)
- func NewWebCustomLog(params ...any) (any, error)
- func NewWebRotateLog(params ...any) (any, error)
- func NewWebSingleLog(params ...any) (any, error)
- type WebConsoleLog
- type WebCustomLog
- type WebLog
- func (log *WebLog) Debug(ctx context.Context, msg string, fields map[string]any)
- func (log *WebLog) Error(ctx context.Context, msg string, fields map[string]any)
- func (log *WebLog) Fatal(ctx context.Context, msg string, fields map[string]any)
- func (log *WebLog) Info(ctx context.Context, msg string, fields map[string]any)
- func (log *WebLog) IsLevelEnable(level contract.LogLevel) bool
- func (log *WebLog) Panic(ctx context.Context, msg string, fields map[string]any)
- func (log *WebLog) SetCtxFielder(handler contract.CtxFielder)
- func (log *WebLog) SetFormatter(formatter contract.Formatter)
- func (log *WebLog) SetLevel(level contract.LogLevel)
- func (log *WebLog) SetOutput(output io.Writer)
- func (log *WebLog) Trace(ctx context.Context, msg string, fields map[string]any)
- func (log *WebLog) Warn(ctx context.Context, msg string, fields map[string]any)
- type WebRotateLog
- type WebSingleLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebConsoleLog ¶
func NewWebCustomLog ¶
func NewWebRotateLog ¶
func NewWebSingleLog ¶
Types ¶
type WebCustomLog ¶
type WebCustomLog struct {
WebLog
}
type WebLog ¶
type WebLog struct {
// contains filtered or unexported fields
}
func (*WebLog) SetCtxFielder ¶
func (log *WebLog) SetCtxFielder(handler contract.CtxFielder)
func (*WebLog) SetFormatter ¶
type WebRotateLog ¶
type WebRotateLog struct { WebLog // contains filtered or unexported fields }
单个文件输出,但是自动进行切割
type WebSingleLog ¶
type WebSingleLog struct { WebLog // contains filtered or unexported fields }
单个文件输出
Click to show internal directories.
Click to hide internal directories.