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.
Not what you‚Äôre looking for? Check out all our available tutorials for mobile app messaging here.
Go to MceConfig.json and add the loglevel option.
There are six values you can enter:
- 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.
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.
Need more help? Check out all of our available tutorials for mobile app messaging here.