Files
EdgeNode/internal/utils/kvstore/logger.go

28 lines
563 B
Go
Raw Normal View History

// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
package kvstore
2024-04-24 09:03:15 +08:00
import (
"fmt"
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
)
type Logger struct {
}
func NewLogger() *Logger {
return &Logger{}
}
func (this *Logger) Infof(format string, args ...any) {
2024-04-24 09:03:15 +08:00
// stub
}
2024-04-24 09:03:15 +08:00
func (this *Logger) Errorf(format string, args ...any) {
remotelogs.Error("KV", fmt.Sprintf(format, args...))
}
2024-04-24 09:03:15 +08:00
func (this *Logger) Fatalf(format string, args ...any) {
remotelogs.Error("KV", fmt.Sprintf(format, args...))
}