Documentation ¶
Index ¶
- func NewMysqlLog(l *log.Logger, config logger.Config, skips ...string) logger.Interface
- type GinLogrus
- type Hook
- func (h *Hook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (h *Hook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (h *Hook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (h *Hook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
- type MysqlLog
- func (l *MysqlLog) Error(ctx context.Context, msg string, data ...interface{})
- func (l *MysqlLog) Info(ctx context.Context, msg string, data ...interface{})
- func (l *MysqlLog) LogMode(level logger.LogLevel) logger.Interface
- func (l *MysqlLog) Printf(format string, args ...interface{})
- func (l *MysqlLog) Trace(ctx context.Context, begin time.Time, ...)
- func (l *MysqlLog) Warn(ctx context.Context, msg string, data ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hook ¶ added in v0.1.8
type Hook struct{}
Hook 记录log
func (*Hook) AfterProcess ¶ added in v0.1.8
func (*Hook) AfterProcessPipeline ¶ added in v0.1.8
func (*Hook) BeforeProcess ¶ added in v0.1.8
Click to show internal directories.
Click to hide internal directories.