code: function showLog() {
    let errorLevel = 0;
    let totalErrors = 0;
    errors.forEach((error, i) => {
      totalErrors = i + 1;
      errorLevel = error.errorLevel || errorLevel;
      console.log(`${error.errorLevel ? '⛔' : '⚠'}  ${error.message}`);
      console.log(JSON.stringify(error.entries));
      console.log('*-------------------------*');
    });
    if (errorLevel) {
      throw `⚠ failed because of the ${totalErrors} error${totalErrors > 1 ? 's' : ''} above ⚠`;
    }
    return totalErrors;
  }
docs: outputs the collected logs