~egtann/sjs

ref: 244f11278d79972028b907d640941ea0f687893c sjs/logger.go -rw-r--r-- 235 bytes
244f1127 — Evan Tann add isc license 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package sjs

type Logger interface {
	Printf(s string, args ...interface{})
}

type OptLogger struct{ Log Logger }

func (o *OptLogger) Printf(s string, args ...interface{}) {
	if o.Log == nil {
		return
	}
	o.Log.Printf(s, args...)
}