int local_port_id = message_port_register_local_port(LOCAL_PORT_NAME, _msg_port_cb, NULL);
if (local_port_id < 0)
{
- LOGE("Failed to register port, error: %d", local_port_id);
+ dlog_print(DLOG_ERROR, LOG_TAG, "Failed to register port, error: %d", local_port_id);
return false;
}
{
return;
}
- LOGI("Received message from %s: satellites_count %s", remote_app_id, satellites_count_str);
+ dlog_print(DLOG_INFO, LOG_TAG, ("Received message from %s: satellites_count %s", remote_app_id, satellites_count_str);
_satellites_update(satellites_count_str);
}
else if (!strncmp(msg_type, MESSAGE_TYPE_POSITION_UPDATE, strlen(msg_type)))
{
return;
}
- LOGI("Received message from %s: position data: %s %s", remote_app_id, latitude_str, longitude_str);
+ dlog_print(DLOG_INFO, LOG_TAG, ("Received message from %s: position data: %s %s", remote_app_id, latitude_str, longitude_str);
_position_update(latitude_str, longitude_str);
}
}
{
if (bundle_get_str(message, msg_type, message_content) != BUNDLE_ERROR_NONE)
{
- LOGE("Failed to get message: %s", msg_type);
+ dlog_print(DLOG_ERROR, LOG_TAG, "Failed to get message: %s", msg_type);
return false;
}
if (!circle_latitude_str || !circle_longitude_str)
{
- LOGE("Invalid parameter");
+ dlog_print(DLOG_ERROR, LOG_TAG, "Invalid parameter");
return;
}
if (!latitude_str || !longitude_str)
{
- LOGE("Invalid parameter");
+ dlog_print(DLOG_ERROR, LOG_TAG, "Invalid parameter");
return;
}
Evas_Object *map = elm_map_add(parent);
if (!map)
{
- LOGE("Failed to create map");
+ dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create map");
return NULL;
}
<p>The minimum zoom level with which the overlay is displayed is set with the <span style="font-family: Courier New,Courier,monospace">elm_map_overlay_displayed_zoom_min_set()</span> function.</p>
<pre class="prettyprint">
// Create circle boundary
-LOGI("Circle boundary overlay at %lf, %lf", circle_longitude, circle_latitude);
+dlog_print(DLOG_INFO, LOG_TAG, ("Circle boundary overlay at %lf, %lf", circle_longitude, circle_latitude);
s_view_data.boundary_overlay = elm_map_overlay_circle_add(s_view_data.map, circle_longitude, circle_latitude, BOUNDARY_CIRCLE_RADIUS_REL);
if (!s_view_data.boundary_overlay)
{
- LOGE("Failed to create boundary overlay");
+ dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create boundary overlay");
return;
}
circle_coords.longitude = circle_longitude;
circle_coords.latitude = circle_latitude;
-LOGI("center: %lf %lf, radius %lf", circle_coords.longitude, circle_coords.latitude, BOUNDARY_CIRCLE_RADIUS_M);
+dlog_print(DLOG_INFO, LOG_TAG, ("center: %lf %lf, radius %lf", circle_coords.longitude, circle_coords.latitude, BOUNDARY_CIRCLE_RADIUS_M);
int ret = location_bounds_create_circle(circle_coords, BOUNDARY_CIRCLE_RADIUS_M, &s_view_data.bounds);
if (ret != LOCATIONS_ERROR_NONE)
{
- LOGE("Failed to create circle bound: error %d", ret);
+ dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create circle bound: error %d", ret);
return;
}
-LOGI("Circle bounds created - %.1fm radius, center at %f, %f", BOUNDARY_CIRCLE_RADIUS_M, circle_coords.longitude, circle_coords.latitude);
+dlog_print(DLOG_INFO, LOG_TAG, ("Circle bounds created - %.1fm radius, center at %f, %f", BOUNDARY_CIRCLE_RADIUS_M, circle_coords.longitude, circle_coords.latitude);
</pre></li>
</ul>
s_view_data.pos_overlay = elm_map_overlay_add(s_view_data.map, longitude, latitude);
if (!s_view_data.pos_overlay)
{
- LOGE("Failed to create position overlay");
+ dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create position overlay");
return;
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>