# auditLog

Records row, cell, selection, and edit-history transitions in an audit log. Disabled by default and separate from long-term server retention.

Canonical: https://grid.syidax.com/docs/options/auditLog/

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

## What does this API do?

Records row, cell, selection, and edit-history transitions in an audit log. Disabled by default and separate from long-term server retention.

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

## Exact input and result types

```typescript
auditLog: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | auditLog |
| HTML attribute | audit-log |
| Default | false |
| Input type | boolean |

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

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the audit-log attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<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.
