It can be useful during development to see what information the Medialets Analytics SDK is sending to the Medialets Muse™ server and also that those messages are sent. To see this information, turn on logging output while running your application in Xcode.
Enable Logging
- In Xcode, find and expand the Executables group in the Groups & Files column of your project window.
- Select the application name inside Executables > right-click and select Get Info.
- Select the Arguments tab at the top of the pop-up window.
- Add a new variable to your environment by clicking the "+" in the lower-left corner of the window.
- Set the variable name to MedialetsLogLevel and the variable value to DEBUG, making sure that the variable's checkbox is checked. Note that setting the value to anything besides DEBUG results in RELEASE logging which result in no logged messages.

Figure: Enable Logging
Running Your Application in the iPhone Simulator
In XCode, open the Console window by selecting the Run > Console. Run or debug your application in the iPhone Simulator as you normally would. You should see output from the Medialets Analytics SDK in the Console window.

Figure: Debugging Console Window
All Medialets Analytics SDK log output is prefixed by *Medialets* 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 any other errors. Such errors may include those caused by improperly entering your unique App ID in your application's Info.plist file.