dc4bc/client/logger.go

21 lines
338 B
Go

package client
import (
"fmt"
)
// logger is a glorious logger implementation.
type logger struct {
userName string
}
func newLogger(username string) *logger {
return &logger{
userName: username,
}
}
func (l *logger) Log(format string, args ...interface{}) {
fmt.Printf("[%s] %s\n", l.userName, fmt.Sprintf(format, args...))
}