diff --git a/internal/utils/kvstore/logger.go b/internal/utils/kvstore/logger.go index caadbed..25e3fd4 100644 --- a/internal/utils/kvstore/logger.go +++ b/internal/utils/kvstore/logger.go @@ -2,6 +2,11 @@ package kvstore +import ( + "fmt" + "github.com/TeaOSLab/EdgeNode/internal/remotelogs" +) + type Logger struct { } @@ -10,8 +15,13 @@ func NewLogger() *Logger { } func (this *Logger) Infof(format string, args ...any) { - + // stub } + +func (this *Logger) Errorf(format string, args ...any) { + remotelogs.Error("KV", fmt.Sprintf(format, args...)) +} + func (this *Logger) Fatalf(format string, args ...any) { - + remotelogs.Error("KV", fmt.Sprintf(format, args...)) }