mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 08:40:23 +00:00
19 lines
282 B
Go
19 lines
282 B
Go
package restful
|
|
|
|
import "testing"
|
|
|
|
// Use like this:
|
|
//
|
|
// TraceLogger(testLogger{t})
|
|
type testLogger struct {
|
|
t *testing.T
|
|
}
|
|
|
|
func (l testLogger) Print(v ...interface{}) {
|
|
l.t.Log(v...)
|
|
}
|
|
|
|
func (l testLogger) Printf(format string, v ...interface{}) {
|
|
l.t.Logf(format, v...)
|
|
}
|