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