---
id: "packages/active-geo/api/diagnostics"
title: "Diagnostics"
description: "GeoDiagnostic, GeoDiagnosticLevel, GeoDiagnosticSink: generated from the source of active-geo."
url: "/packages/active-geo/api/diagnostics"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:diagnostics"
---

# Diagnostics

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

## Types

**GeoDiagnostic**

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

**GeoDiagnosticLevel**

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

Diagnostics go to a sink the host passes (`diagnostics` on the map), the
same contract as the Active chart and grid packages. The package imports no
logging library, keeps no module-level logger, reports only data it cannot
draw truthfully, and names structure (counts, reasons, indices), never host
data such as identifiers or labels.

**GeoDiagnosticSink**

```ts
type GeoDiagnosticSink = (diagnostic: GeoDiagnostic) => void;
```
