github.com/TeaOSLab/EdgeNode@v1.3.8/internal/utils/kvstore/logger.go (about)

     1  // Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
     2  
     3  package kvstore
     4  
     5  import (
     6  	"fmt"
     7  	"github.com/TeaOSLab/EdgeNode/internal/remotelogs"
     8  )
     9  
    10  type Logger struct {
    11  }
    12  
    13  func NewLogger() *Logger {
    14  	return &Logger{}
    15  }
    16  
    17  func (this *Logger) Infof(format string, args ...any) {
    18  	// stub
    19  }
    20  
    21  func (this *Logger) Errorf(format string, args ...any) {
    22  	remotelogs.Error("KV", fmt.Sprintf(format, args...))
    23  }
    24  
    25  func (this *Logger) Fatalf(format string, args ...any) {
    26  	remotelogs.Error("KV", fmt.Sprintf(format, args...))
    27  }