---
id: "packages/active-grid/api/logger"
title: "Logger"
description: "GridDiagnostic, GridDiagnosticLevel, GridDiagnosticSink: generated from the source of active-grid."
url: "/packages/active-grid/api/logger"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:logger"
---

# Logger

Exported by `@workspace/active-grid`. Generated from the package source; part of [the index of every export](/packages/active-grid/api).

## Types

**GridDiagnostic**

```ts
interface GridDiagnostic {
  readonly level: GridDiagnosticLevel;
  readonly source: string;
  readonly message: string;
  readonly data?: Readonly<Record<string, unknown>>;
}
```

One diagnostic of the grid. `source` names the part that emitted it
(`ActiveGrid`, `ActiveGrid.ColumnVirtualizer`); `data` carries structured
detail, with a caught error under `error`.

**GridDiagnosticLevel**

```ts
type GridDiagnosticLevel = 'debug' | 'warn' | 'error';
```

How serious a grid diagnostic is.

**GridDiagnosticSink**

```ts
type GridDiagnosticSink = (diagnostic: GridDiagnostic) => void;
```

Where the grid delivers its diagnostics. Supplied by the host.
