aws / aws-sdk-mobile-analytics-js

Amazon Mobile Analytics JavaScript SDK
Apache License 2.0
82 stars 38 forks source link

Feature: Debug Mode #6

Closed kreck closed 8 years ago

kreck commented 8 years ago

Awesome Product, i'm excited to see it grow further (especially the dashboard on AWS).

On the JS SDK: it would be perfect to have an optional "Debug Mode" that logs Event submissions to the Console. Currently it's really hard to determine if it actually "works" when i'm running outside the browser on a mobile device WebView (Cordova).

Cheers

cheruvian commented 8 years ago

Hi kreck,

You can pass a logger object as part of the AMA.Client.Options object.

It accepts a logger object designed in such a way that you can just pass it console (since console has .log, .error, .info, .debug).

If you are developing on Cordova/Phonegap you can use the PhoneGap Developer App which will proxy the console logs from a mobile device back to your desktop.

Thanks, RIL@AWS