code: function addDebug (uid, userRoles, resourceType, resourceName, action, requiredRoleList, result) {
    const text = `User '${uid}' is attempting to '${action}' on ${resourceType} '${resourceName}'... ` +
      `\n\twhich requires one of these roles: ${JSON.stringify(requiredRoleList)},` +
      `\n\tand user has these roles: ${JSON.stringify(userRoles)}. \n\t` +
      (result ? 'Access permitted!' : 'Access denied!')
    debug(text)
  }
docs: checker