Audit Logs

Immutable event-driven audit trail.

1 min readEdit this page

Usage

import { auditLog, auditMiddleware } from '@restjs/cloud'
 
auditLog({
  action: 'user.login',
  actor: { id: user.id, type: 'user' },
  tenantId: tenant.id,
  success: true
})
 
app.use(auditMiddleware())

Events are emitted on the global event bus for flexible storage.