Class DebugReporter

A reporter that prints every event of a journey on a line of its own, with console.log, as JSON: its kind, sequence number, timestamp, journey ID, workflow and everything else it carries.

It suits trying a workflow out, debugging one, and watching a test run. A reporter that prints something else, or sends the events elsewhere, implements Reporter itself.

import { DebugReporter, DefaultDispatcherFactory } from "itinera/report";

const dispatcher = new DefaultDispatcherFactory().create();
dispatcher.add(new DebugReporter());

Implements

Index