Files
jiacrontab/pkg/test/logger.go
jiazhizhong 1279635d7f fix
2022-03-10 17:09:03 +08:00

23 lines
314 B
Go

package test
type Logger interface {
Output(maxdepth int, s string) error
}
type tbLog interface {
Log(...interface{})
}
type testLogger struct {
tbLog
}
func (tl *testLogger) Output(maxdepth int, s string) error {
tl.Log(s)
return nil
}
func NewTestLogger(tbl tbLog) Logger {
return &testLogger{tbl}
}