docs: def _add_logger_by_name(self, name):
          ''' Handles POST requests for adding a new logger.
  
          Expects logger configuration to be passed in the request's query string.
          The logger name is included in the URL and the address components and
          connection type should be included as well. The loc attribute is
          defaulted to "localhost" when making the socket connection if not
          defined.
  
          loc = IP / interface
          port = port / protocol
          conn_type = udp or ethernet
  
          Raises:
              ValueError:
                  if the port or connection type are not supplied.
          '''
          data = dict(request.forms)
          loc = data.pop('loc', '')
          port = data.pop('port', None)
          conn_type = data.pop('conn_type', None)
  
          if not port or not conn_type:
              e = 'Port and/or conn_type not set'
              raise ValueError(e)
          address = [loc, int(port)]
  
          if 'rotate_log' in data:
              data['rotate_log'] = True if data == 'true' else False
  
          if 'rotate_log_delta' in data:
              data['rotate_log_delta'] = int(data['rotate_log_delta'])
  
          self._logger_manager.add_logger(name, address, conn_type, **data)