From f247e57e76ae8632ee55f1457ffba9b13251bfe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 24 Apr 2024 09:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96KV=E7=9B=B8=E5=85=B3=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/kvstore/logger.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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...)) }