This provides an interface to the app's debugging console.
If you're using CloudPebble, these logs will appear when you press 'View Logs' after launching your application.
If you're using the local SDK, you can use the $ pebble logs
command or:
$ pebble install --emulator basalt --logs
You can find out more about logging in our Debugging with App Logs guide.
Outputs a message to the app's debugging console.
console.log(rocky.watchInfo.platform);
One or more JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.
Outputs a warning message to the app's debugging console.
console.warn('Something seems wrong');
One or more JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.
Outputs an error message to the app's debugging console.
console.error(JSON.stringify(obj));
One or more JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.
Do you need some help understanding the something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can send us a message through the website!