Defines | |
#define | ILOG_DEBUG(...) |
#define | ILOG_INFO(...) |
#define | ILOG_WARN(...) |
#define | ILOG_ERR(...) |
#define | ILOG_CRIT(...) |
Enumerations | |
enum | icd_loglevel { ICD_DEBUG = 0, ICD_INFO, ICD_WARN, ICD_ERR, ICD_CRIT } |
Functions | |
void | icd_log_open (void) |
void | icd_log_close (void) |
enum icd_loglevel | icd_log_get_level (void) |
enum icd_loglevel | icd_log_set_level (enum icd_loglevel new_level) |
void | icd_log_nextlevel (void) |
Variables | |
static enum icd_loglevel | loglevel = ICD_INFO |
#define ILOG_CRIT | ( | ... | ) |
Value:
do { \ if (icd_log_get_level() <= ICD_CRIT) \ DLOG_CRIT(__VA_ARGS__); \ } while (0)
Referenced by icd_dbus_api_scan_result(), icd_iap_connect(), icd_iap_free(), icd_iap_ip_up_cb(), icd_iap_link_post_up_cb(), icd_iap_link_up_cb(), icd_iap_srv_connect_cb(), icd_iap_up_callback(), icd_idle_timer_set(), icd_network_api_has_type(), icd_network_api_load_modules(), icd_network_api_watch_pid(), icd_osso_ic_connstats_get_first(), icd_osso_ic_get_state_foreach(), icd_osso_ic_init(), icd_osso_ic_ipinfo_get_first(), icd_osso_ic_send_ack(), icd_osso_ic_send_nack(), icd_policy_api_disconnect_iap(), icd_policy_api_merge_requests(), icd_policy_api_scan_start(), icd_policy_init(), icd_request_connect_iaps(), icd_request_free(), icd_request_free_iaps(), icd_request_merge(), icd_status_send_signal(), policy_always_online_flightmode_init(), policy_iap_ask_request(), test_ip_up(), test_link_post_up(), test_link_up(), and test_report_scan().
#define ILOG_DEBUG | ( | ... | ) |
Value:
do { \ if (icd_log_get_level() <= ICD_DEBUG) \ DLOG_DEBUG(__VA_ARGS__); \ } while (0)
Referenced by icd_dbus_api_addrinfo_cb(), icd_dbus_api_addrinfo_send(), icd_dbus_api_connect_req(), icd_dbus_api_disconnect_req(), icd_exec_shutdown(), icd_exec_shutdown_check(), icd_exec_signal_cb(), icd_gconf_is_temporary(), icd_gconf_notify(), icd_gconf_remove_dir(), icd_iap_connect(), icd_iap_disconnect_cb(), icd_iap_find(), icd_iap_find_by_id(), icd_iap_foreach(), icd_iap_free(), icd_iap_ip_up_cb(), icd_iap_link_post_up_cb(), icd_iap_link_up_cb(), icd_iap_module_next(), icd_iap_post_down_script_done(), icd_iap_pre_up_script_done(), icd_iap_renew(), icd_iap_run_renew(), icd_iap_run_renew_cb(), icd_iap_run_restart(), icd_iap_save_cb(), icd_iap_script_pre_down(), icd_iap_up_callback(), icd_idle_timer_foreach_iap(), icd_idle_timer_set(), icd_idle_timer_trigger(), icd_idle_timer_unset(), icd_network_api_init_cb(), icd_network_api_load_modules(), icd_network_api_renew(), icd_network_api_unload_modules(), icd_network_api_watch_pid(), icd_network_priority_pref_init(), icd_nw_init(), icd_osso_ic_activate(), icd_osso_ic_bg_killed(), icd_osso_ic_connstats(), icd_osso_ic_connstats_get_first(), icd_osso_ic_connstats_ip_cb(), icd_osso_ic_get_state_foreach(), icd_osso_ic_init(), icd_osso_ic_ipinfo(), icd_osso_ic_ipinfo_cb(), icd_osso_ic_ipinfo_get_first(), icd_osso_ic_ui_pending(), icd_osso_ui_retry(), icd_osso_ui_save(), icd_plugin_load(), icd_policy_api_request_cb(), icd_policy_api_run_async(), icd_policy_api_scan_start(), icd_request_add_iap(), icd_request_cancel(), icd_request_find_foreach(), icd_request_find_iap_by_module(), icd_request_make(), icd_request_merge(), icd_request_retry_cb(), icd_request_tracking_info_add(), icd_request_try_iap(), icd_request_try_iap_cb(), icd_request_update_status(), icd_scan_cache_element_check(), icd_scan_cache_entry_remove(), icd_scan_cache_expire(), icd_scan_cache_remove_iap_for_module(), icd_scan_expire_network(), icd_scan_listener_send_entry(), icd_script_exec(), icd_script_notify_pid(), icd_script_timeout_secs(), icd_srv_provider_disconnect(), icd_srv_provider_has_next(), icd_srv_provider_identify_cb(), icd_srv_provider_init(), icd_srv_provider_unload_modules(), icd_srv_provider_watch_pid(), icd_tracking_info_update(), policy_always_online_check(), policy_always_online_connected(), policy_always_online_connections_changed(), policy_always_online_disconnected(), policy_always_online_flightmode(), policy_always_online_make_request_cb(), policy_always_online_nw_params_changed(), policy_always_online_run(), policy_any_cancel_request(), policy_any_get_types(), policy_any_new_request(), policy_any_scan_cb(), policy_change_done(), policy_change_new_request(), policy_iap_ask_cancel_request(), policy_iap_ask_flightmode(), policy_iap_ask_flightmode_pending(), policy_iap_ask_pending(), policy_iap_ask_request(), policy_iap_restart_value(), policy_merge_request(), policy_nw_disconnect_cancel_always_online(), policy_nw_disconnect_unset_always_online(), policy_nw_disconnect_user_refcount(), srv_test_connect(), srv_test_disconnect(), srv_test_identify(), test_ip_up(), test_ip_up_callback(), test_link_post_up(), test_link_post_up_callback(), test_link_up(), and test_link_up_callback().
#define ILOG_ERR | ( | ... | ) |
Value:
do { \ if (icd_log_get_level() <= ICD_ERR) \ DLOG_ERR(__VA_ARGS__); \ } while (0)
Referenced by icd_dbus_api_addrinfo_req(), icd_dbus_api_addrinfo_send(), icd_dbus_api_connect_req(), icd_dbus_api_disconnect_req(), icd_dbus_api_select_req(), icd_dbus_api_send_connect_sig(), icd_dbus_api_state_req(), icd_dbus_api_state_scan_send(), icd_dbus_api_statistics_ip_cb(), icd_dbus_api_statistics_link_cb(), icd_dbus_api_statistics_link_post_cb(), icd_dbus_api_statistics_req(), icd_dbus_api_statistics_send(), icd_dbus_api_update_search(), icd_dbus_api_update_state(), icd_dbus_connect_path(), icd_dbus_connect_system_bcast_signal(), icd_dbus_connect_system_path(), icd_dbus_disconnect_system_bcast_signal(), icd_dbus_get_system_bus(), icd_dbus_get_unique_name(), icd_dbus_mcall_send(), icd_dbus_register_service(), icd_dbus_send_msg(), icd_dbus_unregister_service(), icd_exec_shutdown(), icd_gconf_check_error(), icd_gconf_get_iap_bytearray(), icd_gconf_rename(), icd_iap_connect(), icd_iap_disconnect_cb(), icd_iap_disconnect_module(), icd_iap_find(), icd_iap_find_by_id(), icd_iap_foreach(), icd_iap_get_ip_stats(), icd_iap_get_ipinfo(), icd_iap_get_link_post_stats(), icd_iap_get_link_stats(), icd_iap_id_create(), icd_iap_module_next(), icd_iap_post_down_script_done(), icd_iap_rename(), icd_iap_run_renew_cb(), icd_iap_run_restart(), icd_iap_up_callback(), icd_idle_timer_set_rules(), icd_idle_timer_start(), icd_idle_timer_unset(), icd_idle_timer_unset_rules(), icd_network_api_foreach_module(), icd_network_api_init_cb(), icd_network_api_load_modules(), icd_network_api_unload_modules(), icd_osso_ic_activate(), icd_osso_ic_connect(), icd_osso_ic_connstats_ip_cb(), icd_osso_ic_connstats_link_cb(), icd_osso_ic_connstats_link_post_cb(), icd_osso_ic_disconnect(), icd_osso_ic_ipinfo_cb(), icd_osso_ic_make_request(), icd_osso_ic_shutdown(), icd_osso_ui_send_retry(), icd_osso_ui_send_save(), icd_osso_ui_signal(), icd_plugin_load(), icd_plugin_load_list(), icd_policy_api_request_cancel(), icd_policy_api_run(), icd_policy_api_scan_stop(), icd_request_foreach(), icd_request_merge(), icd_request_tracking_info_delete(), icd_request_tracking_info_delete_foreach(), icd_scan_cache_entry_add(), icd_scan_cache_entry_remove(), icd_scan_cache_init(), icd_scan_cache_remove(), icd_scan_cache_remove_iap_for_module(), icd_scan_cb(), icd_scan_expire_network(), icd_scan_listener_send_entry(), icd_scan_results_request(), icd_scan_results_unregister(), icd_script_exec(), icd_script_notify_pid(), icd_signal_init(), icd_srv_provider_connect(), icd_srv_provider_connect_cb(), icd_srv_provider_disconnect(), icd_srv_provider_disconnect_cb(), icd_srv_provider_foreach_module(), icd_srv_provider_identify_cb(), icd_srv_provider_init(), icd_srv_provider_unload_modules(), icd_srv_provider_watch_pid(), icd_tracking_info_update(), main(), policy_always_online_flightmode(), policy_always_online_gconf_init(), policy_any_cancel_request(), policy_any_get_types(), policy_any_new_request(), policy_any_scan_cb(), policy_change_done(), policy_change_new_request(), policy_iap_ask_cancel_request(), and policy_iap_ask_flightmode().
#define ILOG_INFO | ( | ... | ) |
Value:
do { \ if (icd_log_get_level() <= ICD_INFO) \ DLOG_INFO(__VA_ARGS__); \ } while (0)
Referenced by icd_dbus_api_app_exit(), icd_dbus_api_disconnect_req(), icd_dbus_api_request(), icd_dbus_api_scan_append(), icd_exec_shutdown(), icd_exec_shutdown_check(), icd_exec_signal_cb(), icd_iap_disconnect(), icd_iap_disconnect_module(), icd_iap_do_callback(), icd_iap_get_ip_stats(), icd_iap_get_ipinfo(), icd_iap_get_link_post_stats(), icd_iap_get_link_stats(), icd_iap_module_next(), icd_iap_post_down_script_done(), icd_iap_post_up_script_done(), icd_iap_pre_down_script_done(), icd_iap_rename(), icd_iap_restart(), icd_iap_script_pre_down(), icd_iap_up_callback(), icd_idle_timer_start(), icd_idle_timer_trigger(), icd_idle_timer_unset_rules(), icd_name_owner_filter(), icd_network_api_close(), icd_network_api_foreach_module_pid(), icd_network_api_status_update(), icd_osso_ic_bg_killed(), icd_osso_ic_connstats(), icd_osso_ic_get_state(), icd_osso_ic_ipinfo(), icd_osso_ic_request(), icd_osso_ic_send_ack(), icd_osso_ic_send_nack(), icd_osso_ui_disconnect(), icd_osso_ui_signal(), icd_policy_api_iap_connect_iter(), icd_policy_api_iap_disconnect_iter(), icd_policy_api_iap_disconnected_iter(), icd_policy_api_iap_restart_iter(), icd_policy_api_iap_succeeded_iter(), icd_policy_api_new_request(), icd_policy_api_request_call(), icd_policy_api_request_cancel_iter(), icd_policy_api_request_cb(), icd_policy_api_scan_start_status_iter(), icd_policy_api_scan_stop_status_iter(), icd_policy_api_unload_modules(), icd_policy_init(), icd_request_cancel(), icd_request_connect(), icd_request_connect_iaps(), icd_request_make(), icd_request_try_iap(), icd_request_try_iap_cb(), icd_scan_cache_rescan(), icd_scan_cb(), icd_scan_status_start(), icd_scan_status_stop(), icd_script_cancel(), icd_script_notify_pid(), icd_script_timeout(), icd_srv_provider_close(), icd_srv_provider_connect(), icd_srv_provider_disconnect(), icd_srv_provider_foreach_module_pid(), icd_srv_provider_init(), icd_srv_provider_load_modules(), icd_status_send_signal(), main(), policy_always_online_cancel_pending(), policy_always_online_cancel_timer(), policy_always_online_check(), policy_always_online_destruct(), policy_always_online_flightmode(), policy_always_online_make_request(), policy_always_online_nw_params_changed(), policy_always_online_run(), policy_any_new_request(), policy_any_scan_cb(), policy_change_confirm_cb(), policy_change_new_request(), policy_merge_request(), policy_nw_disconnect(), and policy_one_connected().
#define ILOG_WARN | ( | ... | ) |
Value:
do { \ if (icd_log_get_level() <= ICD_WARN) \ DLOG_WARN(__VA_ARGS__); \ } while (0)
Referenced by icd_dbus_api_scan_sender_exists(), icd_dbus_api_statistics_ip_cb(), icd_dbus_api_statistics_link_cb(), icd_dbus_api_statistics_link_post_cb(), icd_exec_signal_cb(), icd_iap_disconnect(), icd_iap_get_ip_stats(), icd_iap_get_ipinfo(), icd_iap_get_link_post_stats(), icd_iap_get_link_stats(), icd_iap_module_next(), icd_iap_save_cb(), icd_idle_timer_foreach_iap(), icd_idle_timer_set(), icd_idle_timer_start(), icd_name_owner_filter(), icd_network_api_close(), icd_network_api_foreach_module(), icd_network_api_foreach_module_pid(), icd_network_api_init_cb(), icd_network_api_renew(), icd_network_api_status_update(), icd_network_modules_get(), icd_osso_ic_connstats_ip_cb(), icd_osso_ic_connstats_link_cb(), icd_osso_ic_connstats_link_post_cb(), icd_osso_ic_ipinfo_cb(), icd_osso_ic_shutdown(), icd_osso_ui_disconnect(), icd_osso_ui_retry(), icd_osso_ui_save(), icd_osso_ui_send_retry(), icd_osso_ui_send_save(), icd_plugin_load_all(), icd_plugin_load_list(), icd_policy_api_run(), icd_policy_api_scan_result(), icd_policy_modules_get(), icd_request_merge(), icd_request_retry_cb(), icd_request_try_iap_cb(), icd_scan_network(), icd_scan_results_request(), icd_script_timeout_secs(), icd_srv_provider_close(), icd_srv_provider_foreach_module(), icd_srv_provider_foreach_module_pid(), icd_srv_provider_identify(), icd_srv_provider_identify_cb(), icd_srv_provider_init(), icd_srv_provider_limited_conn(), icd_srv_provider_load_modules(), policy_any_get_types(), policy_any_scan_cb(), policy_change_confirm_cb(), policy_change_do_cb(), policy_change_done(), and policy_iap_restart_value().
enum icd_loglevel |
level to log on
void icd_log_close | ( | void | ) |
disable logging
Referenced by main().
enum icd_loglevel icd_log_get_level | ( | void | ) |
get the current log level
References loglevel.
void icd_log_nextlevel | ( | void | ) |
void icd_log_open | ( | void | ) |
enable logging
Referenced by main().
enum icd_loglevel icd_log_set_level | ( | enum icd_loglevel | new_level | ) |
enum icd_loglevel loglevel = ICD_INFO [static] |
the global log level
Referenced by icd_log_get_level(), icd_log_nextlevel(), and icd_log_set_level().