Enterprise

Audit Logs

Immutable event-driven audit trail.

1 min readDocumentationEdit this page

Usage#

typescript
import { auditLog, auditMiddleware } from '@AxilJS/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.

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY