Documentation ¶
Index ¶
- func NewConsoleLog(params ...any) (any, error)
- func NewRotateLog(params ...any) (any, error)
- func NewSingleLog(params ...any) (any, error)
- type ConsoleLog
- type Log
- func (l *Log) Debug(ctx context.Context, msg string, data map[string]any)
- func (l *Log) Error(ctx context.Context, msg string, data map[string]any)
- func (l *Log) Fatal(ctx context.Context, msg string, data map[string]any)
- func (l *Log) Info(ctx context.Context, msg string, data map[string]any)
- func (l *Log) IsLevelEnable(level contract.LogLevel) bool
- func (l *Log) Panic(ctx context.Context, msg string, data map[string]any)
- func (l *Log) SetFormatter(formatter contract.Formatter)
- func (l *Log) SetHandler(handler contract.Handler)
- func (l *Log) SetLevel(level contract.LogLevel)
- func (l *Log) SetWriter(writer io.Writer)
- func (l *Log) Trace(ctx context.Context, msg string, data map[string]any)
- func (l *Log) Warn(ctx context.Context, msg string, data map[string]any)
- type RotateLog
- type SingleLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsoleLog ¶
func NewRotateLog ¶
func NewSingleLog ¶
Types ¶
type ConsoleLog ¶
type ConsoleLog struct {
Log
}
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) SetFormatter ¶
func (*Log) SetHandler ¶
Click to show internal directories.
Click to hide internal directories.