char *global_nameserver;
bool supplicant_debug;
char *def_wifi_ifname;
+ bool file_log;
+ bool dlog_log;
+ bool simplified_log;
#endif
} connman_settings = {
.bg_scan = true,
.global_nameserver = NULL,
.supplicant_debug = false,
.def_wifi_ifname = DEFAULT_WIFI_INTERFACE,
+ .file_log = true,
+ .dlog_log = true,
+ .simplified_log = true,
#endif
};
#define CONF_GLOBAL_NAMESERVER "GlobalNameserver"
#define CONF_CONNMAN_SUPPLICANT_DEBUG "ConnmanSupplicantDebug"
#define CONF_CONNMAN_WIFI_DEF_IFNAME "DefaultWifiInterface"
+#define CONF_CONNMAN_FILE_LOG "FileLogging"
+#define CONF_CONNMAN_DLOG_LOG "DlogLogging"
+#define CONF_CONNMAN_SIMPLIFIED_LOG "SimplifiedLog"
#endif
#if defined TIZEN_EXT
CONF_GLOBAL_NAMESERVER,
CONF_CONNMAN_SUPPLICANT_DEBUG,
CONF_CONNMAN_WIFI_DEF_IFNAME,
+ CONF_CONNMAN_FILE_LOG,
+ CONF_CONNMAN_DLOG_LOG,
+ CONF_CONNMAN_SIMPLIFIED_LOG,
#endif
NULL
};
g_clear_error(&error);
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_CONNMAN_FILE_LOG, &error);
+ if (!error)
+ connman_settings.file_log = boolean;
+
+ g_clear_error(&error);
+
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_CONNMAN_DLOG_LOG, &error);
+ if (!error)
+ connman_settings.dlog_log = boolean;
+
+ g_clear_error(&error);
+
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_CONNMAN_SIMPLIFIED_LOG, &error);
+ if (!error)
+ connman_settings.simplified_log = boolean;
+
+ g_clear_error(&error);
+
check_Tizen_INS_configuration(config);
}
parse_config(config);
if (config)
g_key_file_free(config);
-
+#if defined TIZEN_EXT
+ dlog_logging = connman_settings.dlog_log;
+ file_logging = connman_settings.file_log;
+ simplified_log = connman_settings.simplified_log;
+#endif
return 0;
}
if (g_str_equal(key, CONF_CONNMAN_SUPPLICANT_DEBUG))
return connman_settings.supplicant_debug;
+
+ if (g_str_equal(key, CONF_CONNMAN_FILE_LOG))
+ return connman_settings.file_log;
+
+ if (g_str_equal(key, CONF_CONNMAN_DLOG_LOG))
+ return connman_settings.dlog_log;
+
+ if (g_str_equal(key, CONF_CONNMAN_SIMPLIFIED_LOG))
+ return connman_settings.simplified_log;
#endif
#if defined TIZEN_EXT