forked from p93542168/wheat-cache
26 lines
540 B
Go
26 lines
540 B
Go
package logx
|
|
|
|
import (
|
|
"gitee.com/timedb/wheatCache/pkg/event"
|
|
middle_msg "gitee.com/timedb/wheatCache/pkg/middle-msg"
|
|
)
|
|
|
|
type LogLevelState int8
|
|
|
|
type upLogger struct {
|
|
produce *event.ProduceInterface
|
|
}
|
|
|
|
type logInterface interface {
|
|
Debug(msg interface{}) *middle_msg.LogContext
|
|
Info(msg interface{}) *middle_msg.LogContext
|
|
Warn(msg interface{}) *middle_msg.LogContext
|
|
Error(msg interface{}) *middle_msg.LogContext
|
|
|
|
Print(level string, msg interface{}) *middle_msg.LogContext
|
|
}
|
|
|
|
func NewLogger() *upLogger {
|
|
return &upLogger{}
|
|
}
|