code: func (a *application) getOutputFactory() (outputFactory, error) {
  	factory := a.outputConfig.getFactory()
  	if factory == nil {
  		return nil, errors.New("main: No output is configured")
  	}
  	return factory, nil
  }
docs: // getOutputFactory returns the currently-configured output factory.