12 lines
243 B
Go
12 lines
243 B
Go
|
package hystrix
|
||
|
|
||
|
type logger interface {
|
||
|
Printf(format string, items ...interface{})
|
||
|
}
|
||
|
|
||
|
// NoopLogger does not log anything.
|
||
|
type NoopLogger struct{}
|
||
|
|
||
|
// Printf does nothing.
|
||
|
func (l NoopLogger) Printf(format string, items ...interface{}) {}
|