14 lines
185 B
Go
14 lines
185 B
Go
|
package srpc
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
)
|
||
|
|
||
|
type LogErrorFunc func(format string, args ...interface{})
|
||
|
|
||
|
var logError = LogErrorFunc(log.Printf)
|
||
|
|
||
|
func SetLogError(f LogErrorFunc) {
|
||
|
logError = f
|
||
|
}
|