docs: function log(type, ...args) {
      // The stack type allows to filter logs in testing
      // since the stack files paths vary between systems
      if (debug && ('debug' === type || 'stack' === type)) {
        debug(...args);
        return;
      }
      logger[logger[type] ? type : 'error'](...args);
    }