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

Commands

infoCode

infoCode : Int -> Cmd msg

Emit an info-level log event.

warnCode

warnCode : Int -> Cmd msg

Emit a warning-level log event.

errorCode

errorCode : Int -> Cmd msg

Emit an error-level log event.