DebugTransport
A TrackerTransport that simply logs all Events it receives to the given TrackerConsole.debug.
Used primarily for debugging purposes or for unit testing.
Usage
In the following example we are creating a test tracker that logs all of its messages to console.debug.
makeTracker({
applicationId: 'test',
transport: new DebugTransport()
});
tip
An easy way to spy on Events as they would be sent to the Collector is to pass a mock to the console
parameter.