Enable Logging
It can be useful during development to see what information the Medialets Analytics SDK is sending to the Medialets Muse™. To see this information, turn on logging output while running your application.
By default, logging is disabled in the emulator and on devices. If you want to enable debug logging for MMT-tagged log messages in the DDMS perspective in Eclipse, connect your device to your machine via USB or run an Android emulator, open a terminal window and enter the following commands:
- adb shell (this will get you a shell inside the emulator or device)
- setprop log.tag.MMT DEBUG
At this point, all log messages (debug and above) should be logged for the MMT tag.
All Medialets Analytics SDK log output is prefixed by MMT to help distinguish it from your own log output and system messages. In addition to observing what the Medialets Analytics SDK is doing, you will also be able to see any errors or other messages sent back to the client by the Medialets Muse™ server. This can help with debugging potential networking problems or other errors. Such errors may include those caused by improperly entering your unique App ID in the MMAnalyticsManager constructor.