Overview

Skill Level: Any

To help you debug output messages, you can select which types of log levels you want to see by adding the log level option.

Prerequisites

Not what you’re looking for? Check out all our available tutorials for mobile app messaging here.

 

 

Step-by-step

  1. Saving logs

    Go to MceConfig.json and add the loglevel option.

    There are six values you can enter:

    1. error
    2. warn
    3. info
    4. verbose 
    5. none
    6. debug – will behave like “verbose”

    Note: any other string not on the list – will behave like “none”

    If the log level option is not present in MceConfig.json, the value will be error by default. If you set the log level to error, you see only error messages. If you set it to warn, you see warning and error messages. If you set it to info, you see informational, error, and warning messages. If you set it to verbose, you see all messages, including events that are sent to the server and callback information.

    Saving logs
    You can save your logs to a file for quick access to help with debugging.

    • Add logfile:true to the MceConfig.json file.
    • Set the UIFileSharingEnabled flag to YES in info.plist. This flag allows the file to be retrieved.

    Your logs are saved to the iTunes Sync section based on the name of the app.

Expected outcome

Need more help? Check out all of our available tutorials for mobile app messaging here.

 

Join The Discussion

Your email address will not be published. Required fields are marked *