Logger
GridDiagnostic, GridDiagnosticLevel, GridDiagnosticSink: generated from the source of active-grid.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
One diagnostic of the grid. source names the part that emitted it (Active, Active); data carries structured detail, with a caught error under error.
interface GridDiagnostic {
readonly level: GridDiagnosticLevel;
readonly source: string;
readonly message: string;
readonly data?: Readonly<Record<string, unknown>>;
}How serious a grid diagnostic is.
type GridDiagnosticLevel = 'debug' | 'warn' | 'error';Where the grid delivers its diagnostics. Supplied by the host.
type GridDiagnosticSink = (diagnostic: GridDiagnostic) => void;