// Printf prints to the logger a specific error with optionally arguments func Printf(logger *logger.Logger, err error, args ...interface{}) { logger.Printf(err.Error(), args...) }