mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-13 06:50:25 +08:00
28 lines
563 B
Go
28 lines
563 B
Go
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
|
|
package kvstore
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
|
|
)
|
|
|
|
type Logger struct {
|
|
}
|
|
|
|
func NewLogger() *Logger {
|
|
return &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...))
|
|
}
|