bf51655a7b
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
18 lines
282 B
Go
18 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...)
|
|
}
|