function log(key, value, message, errorLevel = 1) {
  const error = {};
  // looks for the original item that caused the error
  error.entries = colorsSrc.entries.filter((entry) => {
    return entry[key] === value;
  });

  error.message = message;
  error.errorLevel = errorLevel;

  errors.push(error);
}
logs errors and warning
@param   {string} key        key to look for in input
@param   {string} value      value to look for
@param   {string} message    error message
@param   {Number} errorLevel if any error is set to 1, the program will exit