aboutsummaryrefslogblamecommitdiff
path: root/rpc/logger.go
blob: 25fe2d64fe4be8e266b5ae5001fbf933aa180ede (plain) (tree)
1
           


















                                                             
package rpc

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{}