# auditLogChanged

Emitted when an audit record is added. Read entry to connect your app's retention flow.

Canonical: https://grid.syidax.com/docs/events/auditLogChanged/

<a id="meaning"></a>

## What does this API do?

Emitted when an audit record is added. Read entry to connect your app's retention flow.

<a id="contract"></a>

## Exact input and result types

```typescript
auditLogChanged: { entry: AuditEntry }
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('auditLogChanged', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('auditLogChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

- [AuditEntry](https://grid.syidax.com/docs/types/AuditEntry.md)

<a id="recipes"></a>

## Feature explanations and examples

- [View change history](https://grid.syidax.com/docs/features/audit-log.md) — The audit log tracks row, cell, and selection changes and undo/redo transitions. Use it to inspect change history that current values alone cannot reveal.
