flowGraphContextLogger.js 450 B

1234567891011121314
  1. import { Tools } from "../Misc/tools.js";
  2. /**
  3. * @experimental
  4. * This class is a decorator for the context which logs the nodes that were executed.
  5. */
  6. export class FlowGraphContextLogger {
  7. constructor(_context) {
  8. this._context = _context;
  9. this._context.onNodeExecutedObservable.add((node) => {
  10. Tools.Log(`Node executed: ${node.getClassName()}`);
  11. });
  12. }
  13. }
  14. //# sourceMappingURL=flowGraphContextLogger.js.map