forked from p93542168/wheat-cache
22 lines
431 B
Go
22 lines
431 B
Go
package logx
|
|
|
|
import (
|
|
"context"
|
|
"gitee.com/timedb/wheatCache/pkg/event"
|
|
)
|
|
|
|
type LogLevelState int8
|
|
|
|
type upLogger struct {
|
|
produce event.ProduceInterface
|
|
}
|
|
|
|
type logInterface interface {
|
|
Debug(ctx context.Context, msg interface{})
|
|
Info(ctx context.Context, msg interface{})
|
|
Warn(ctx context.Context, msg interface{})
|
|
Error(ctx context.Context, msg interface{})
|
|
|
|
Print(level string, ctx context.Context, msg interface{})
|
|
}
|