Pebble.Log
Runtime logging commands.
Emit integer codes from your update loop; the C runtime prints them to the device log (visible in debug builds and the IDE debugger).
import Pebble.Log as Log
reportFailure : Cmd msg
reportFailure =
Log.errorCode 3001
For a runnable example, use the watch-demo-log project template in the IDE.
Native Pebble C API
- Logging on developer.repebble.com
Commands
infoCode
infoCode : Int -> Cmd msgEmit an info-level log event.
warnCode
warnCode : Int -> Cmd msgEmit a warning-level log event.
errorCode
errorCode : Int -> Cmd msgEmit an error-level log event.