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

29 lines
567 B
Go
Raw Normal View History

2024-07-27 15:42:50 +08:00
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cloud .
package kvstore
2024-04-24 09:03:15 +08:00
import (
"fmt"
2024-07-27 15:42:50 +08:00
2024-04-24 09:03:15 +08:00
"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...))
}