blob: 7907e4f0fb6088fe7a92261e4479ea0d718c329f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package jsonrpc2
import "log"
type Logger interface {
Logf(format string, args ...interface{})
}
type nopLogger struct{}
func (n nopLogger) Logf(format string, args ...interface{}) {
}
type stdLogger struct{}
func (n stdLogger) Logf(format string, args ...interface{}) {
log.Printf(format, args...)
}
var StdLogger = stdLogger{}
|