code: func Consolef(w io.Writer, component string, msg string, params ...interface{}) {
  	entry := log.WithFields(log.Fields{
  		trace.Component: component,
  	})
  	msg = fmt.Sprintf(msg, params...)
  	entry.Info(msg)
  	if w != nil {
  		component := strings.ToUpper(component)
  		fmt.Fprintf(w, "[%v]%v%v\n", strings.ToUpper(component), strings.Repeat(" ", 8-len(component)), msg)
  	}
  }
docs: // Consolef prints the same message to a 'ui console' (if defined) and also to
  // the logger with INFO priority