)
// LogFunc is a helper type to reduce typing.
-type LogFunc func(level safcm.LogLevel, format string, a ...interface{})
+type LogFunc func(level safcm.LogLevel, msg string)
type Logger struct {
fun LogFunc
func (l *Logger) log(level safcm.LogLevel,
format string, a ...interface{}) {
- l.fun(level, "%s %s", l.prefix, fmt.Sprintf(format, a...))
+ l.fun(level, l.prefix+" "+fmt.Sprintf(format, a...))
}