Extends ReportUtils
Report adapter with pluggable storage backend and instance memoization.
Features:
Used for structured event logging and analytics pipelines.
constructor();
ReportFactory: any
Current report storage adapter constructor. Defaults to ReportBase for JSONL storage. Can be changed via useReportAdapter().
getReportStorage: any
Memoized storage instances cache. Key: reportName (backtest, live, walker, etc.) Value: TReportBase instance created with current ReportFactory. Ensures single instance per report type for the lifetime of the application.
writeData: <T = any>(reportName: keyof IReportTarget, data: T, options: IReportDumpOptions) => Promise<void>
Writes report data to storage using the configured adapter. Automatically initializes storage on first write for each report type.
useReportAdapter(Ctor: TReportBaseCtor): void;
Sets the report storage adapter constructor. All future report instances will use this adapter.
useDummy(): void;
Switches to a dummy report adapter that discards all writes. All future report writes will be no-ops.
useJsonl(): void;
Switches to the default JSONL report adapter. All future report writes will use JSONL storage.