fix: protocol v1
This commit is contained in:
37
reach/client/protocol/testsuite/logger.go
Normal file
37
reach/client/protocol/testsuite/logger.go
Normal file
@ -0,0 +1,37 @@
|
||||
package testsuite
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"forge.cadoles.com/cadoles/go-emlid/reach/client/logger"
|
||||
)
|
||||
|
||||
type Logger struct {
|
||||
t *testing.T
|
||||
}
|
||||
|
||||
// Debug implements logger.Logger.
|
||||
func (l *Logger) Debug(msg string, args ...any) {
|
||||
l.t.Logf(msg, args...)
|
||||
}
|
||||
|
||||
// Error implements logger.Logger.
|
||||
func (l *Logger) Error(msg string, args ...any) {
|
||||
l.t.Logf(msg, args...)
|
||||
}
|
||||
|
||||
// Info implements logger.Logger.
|
||||
func (l *Logger) Info(msg string, args ...any) {
|
||||
l.t.Logf(msg, args...)
|
||||
}
|
||||
|
||||
// Warn implements logger.Logger.
|
||||
func (l *Logger) Warn(msg string, args ...any) {
|
||||
l.t.Logf(msg, args...)
|
||||
}
|
||||
|
||||
func NewLogger(t *testing.T) *Logger {
|
||||
return &Logger{t}
|
||||
}
|
||||
|
||||
var _ logger.Logger = &Logger{}
|
Reference in New Issue
Block a user