mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-14 15:40:24 +08:00
优化KV相关日志
This commit is contained in:
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
package kvstore
|
package kvstore
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
|
||||||
|
)
|
||||||
|
|
||||||
type Logger struct {
|
type Logger struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10,8 +15,13 @@ func NewLogger() *Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *Logger) Infof(format string, args ...any) {
|
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) {
|
func (this *Logger) Fatalf(format string, args ...any) {
|
||||||
|
remotelogs.Error("KV", fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user