wheat-cache/pkg/logx/define.go

22 lines
431 B
Go
Raw Normal View History

2021-10-05 20:52:45 +08:00
package logx
import (
2021-10-06 14:47:58 +08:00
"context"
2021-10-05 20:52:45 +08:00
"gitee.com/timedb/wheatCache/pkg/event"
)
type LogLevelState int8
type upLogger struct {
2021-10-06 14:47:58 +08:00
produce event.ProduceInterface
2021-10-05 20:52:45 +08:00
}
2021-10-05 21:36:06 +08:00
type logInterface interface {
2021-10-06 14:47:58 +08:00
Debug(ctx context.Context, msg interface{})
Info(ctx context.Context, msg interface{})
Warn(ctx context.Context, msg interface{})
Error(ctx context.Context, msg interface{})
2021-10-05 20:52:45 +08:00
2021-10-06 14:47:58 +08:00
Print(level string, ctx context.Context, msg interface{})
2021-10-05 20:52:45 +08:00
}