All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Logging

Detailed Description

Functions related to logging from apps.

This module contains the functions necessary to log messages through Bluetooth.

Note
It is no longer necessary to enable app logging output from the "settings->about" menu on the Pebble for them to be transmitted! Instead use the "pebble logs" command included with the SDK to activate logs. The logs will appear right in your console. Logging over Bluetooth is a fairly power hungry operation that non-developers will not need when your apps are distributed.

Function Documentation

void app_log ( uint8_t  log_level,
const char *  src_filename,
int  src_line_number,
const char *  fmt,
  ... 
)

Log an app message. Refer the snprintf manpage for details about the C formatting string format.

Parameters
log_level
src_filenameThe source file where the log originates from
src_line_numberThe line number in the source file where the log originates from
fmtA C formatting string
...The arguments for the formatting string
Note
We do not have floating point number support in formatting strings

Enumeration Type Documentation

Suggested log level values.

Enumerator
APP_LOG_LEVEL_ERROR 

Error level log message.

APP_LOG_LEVEL_WARNING 

Warning level log message.

APP_LOG_LEVEL_INFO 

Info level log message.

APP_LOG_LEVEL_DEBUG 

Debug level log message.

APP_LOG_LEVEL_DEBUG_VERBOSE 

Verbose Debug level log message.