function getLogLevel(level, action, payload, type) {
	  switch (typeof level === 'undefined' ? 'undefined' : _typeof(level)) {
	    case 'object':
	      return typeof level[type] === 'function' ? level[type].apply(level, _toConsumableArray(payload)) : level[type];
	    case 'function':
	      return level(action);
	    default:
	      return level;
	  }
	}
Get log level string based on supplied params

@param {string | function | object} level - console[level]
@param {object} action - selected action
@param {array} payload - selected payload
@param {string} type - log entry type

@returns {string} level