code: function logError(error) {
    const { name, message, stack } = error;
  
    log(formatErrorMarker(name), ': ', message);
  
    error.stack = (0, _cleanStack2.default)(stack);
  
    (0, _forEach2.default)(_errorStackParser2.default.parse(error), ({ functionName = 'unknown', fileName, lineNumber, columnNumber }) => {
      log('  • ', ...formatLine(functionName, fileName, lineNumber, columnNumber));
    });
  }
docs: Prints an Error object out to the console.
  
  Removes irrelevant entries from its stack trace that point to Node.js system files that you would never debug anyway
  and hence are irrelevant.
  
  @memberof module:logger
  @function logError
  @param {Error} error - an error object
  @example
  import {logError} from 'webcompiler';
  // or - import {logError} from 'webcompiler/lib/logger';
  // or - var logError = require('webcompiler').logError;
  // or - var logError = require('webcompiler/lib/logger').logError;
  
  logError(new Error('Some error message'));