code: def _set_formatter(self):
          
          if hasattr(self._config, "formatter") and self._config.formatter == "json":
              self._formatter = "json"
          else:
              self._formatter = "text"
docs: Inspects config and sets the name of the formatter to either "json" or "text"
          as instance attr. If not present in config, default is "text"