Index: /branches/rel_apv_10_7_0_21_pre_sight/usr/click/bin/backend/sys_cmd.c
===================================================================
--- /branches/rel_apv_10_7_0_21_pre_sight/usr/click/bin/backend/sys_cmd.c	(revision 38795)
+++ /branches/rel_apv_10_7_0_21_pre_sight/usr/click/bin/backend/sys_cmd.c	(working copy)
@@ -3123,22 +3123,6 @@
 	FILE *fp;
 	char path[1035];
 	char cmd[1024];
-
-	// snprintf(cmd, 1024, "python3 /ca/bin/azure/AZFailoverPoller.py -mode 2");
-	// system(cmd);
-
-//
-	// fp = popen("python3 /ca/bin/azure/AZFailoverPoller.py -mode 2", "r");
-	// if (fp == NULL) {
-    //     printf("Failed to run command\n" );
-    //     exit(1);
-    // }
-    // while (fgets(path, sizeof(path)-1, fp) != NULL) {
-    //     printf("%s", path);
-    // }
-    // pclose(fp);
-//
-
 	system("ps aux | grep 'python3 /ca/bin/azure/AZFailoverPoller.py -mode 1' | grep -v grep | awk '{print $2}' | xargs kill -9");
 }
 
@@ -3495,17 +3479,12 @@
 //
 }
 
-void 
-cloud_az_failover_trigger() 
+void cloud_az_failover_trigger() 
 {
 	FILE *fp;
 	char path[1035];
 	char cmd[1024];
 
-	// snprintf(cmd, 1024, "python3 /ca/bin/azure/AZFailoverManager.py -mode 1");
-	// system(cmd);
-
-//
 	fp = popen("python3 /ca/bin/azure/AZFailoverManager.py -mode 1", "r");
 	if (fp == NULL) {
         printf("Failed to run command\n" );
@@ -3515,7 +3494,144 @@
         printf("%s", path);
     }
     pclose(fp);
-//
+
+}
+
+void cloud_az_set_log_on()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -mode on");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+}
+
+void cloud_az_set_log_off() 
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -mode off");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+}
+
+void cloud_az_show_log_status()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -mode status");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+
+}
+
+void cloud_az_show_log_log()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -mode show");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+}
+
+void cloud_az_set_loglevel_debug()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -level debug");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+}
+
+void cloud_az_set_loglevel_info()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -level info");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+}
+
+void cloud_az_set_loglevel_warning()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -level warning");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
+}
+
+void cloud_az_set_loglevel_error()
+{
+	FILE *fp;
+	char path[1035];
+	char cmd[1024];
+	snprintf(cmd, 1024, "python3 /ca/bin/azure/LoggerManager.py -level error");
+	fp = popen(cmd, "r");
+	if (fp == NULL) {
+        printf("Failed to run command\n" );
+        exit(1);
+    }
+    while (fgets(path, sizeof(path)-1, fp) != NULL) {
+        printf("%s", path);
+    }
+    pclose(fp);
 }
 
 void 
Index: /branches/rel_apv_10_7_0_21_pre_sight/usr/click/lib/libparser/commands.pm
===================================================================
--- /branches/rel_apv_10_7_0_21_pre_sight/usr/click/lib/libparser/commands.pm	(revision 38795)
+++ /branches/rel_apv_10_7_0_21_pre_sight/usr/click/lib/libparser/commands.pm	(working copy)
@@ -165,6 +165,46 @@
 		help_string => "Display Cloud Azure Show decision",
 	},
 
+
+# # cloud az show log
+
+	{
+		obj_type => "MENU",
+		name => "log",
+		parent_menu => "root_cloud_azure_show",
+		uniq_name => "root_cloud_azure_show_log",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL",
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Display Cloud Azure log and status",
+	},
+
+	# cloud az show log status
+
+	{
+		obj_type => "ITEM",
+		name => "status",
+		menu => "root_cloud_azure_show_log",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Check Azure CLI log functionality status",
+		function_name => "cloud_az_show_log_status",
+		function_args => [],
+	},
+
+	# cloud az show log log
+
+	{
+		obj_type => "ITEM",
+		name => "log",
+		menu => "root_cloud_azure_show_log",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Show the log of az tools",
+		function_name => "cloud_az_show_log_log",
+		function_args => [],
+	},
+
+
 	# cloud az show status
 
 	{
@@ -228,6 +268,100 @@
 		help_string => "Display Cloud Azure Set decision",
 	},
 
+	# cloud az set loglevel
+	{
+		obj_type => "MENU",
+		name => "loglevel",
+		parent_menu => "root_cloud_azure_set",
+		uniq_name => "root_cloud_azure_set_loglevel",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL",
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the severity of the log functionality",
+	},
+	
+	# cloud az set loglevel debug
+	{
+		obj_type => "ITEM",
+		name => "debug",
+		menu => "root_cloud_azure_set_loglevel",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the log severity to debug",
+		function_name => "cloud_az_set_loglevel_debug",
+		function_args => [],
+	},
+	# cloud az set loglevel info
+	{
+		obj_type => "ITEM",
+		name => "info",
+		menu => "root_cloud_azure_set_loglevel",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the log severity to info",
+		function_name => "cloud_az_set_loglevel_info",
+		function_args => [],
+	},
+
+	# cloud az set loglevel warning
+	{
+		obj_type => "ITEM",
+		name => "warning",
+		menu => "root_cloud_azure_set_loglevel",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the log severity to warning",
+		function_name => "cloud_az_set_loglevel_warning",
+		function_args => [],
+	},
+
+
+	# cloud az set loglevel error
+	{
+		obj_type => "ITEM",
+		name => "error",
+		menu => "root_cloud_azure_set_loglevel",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the log severity to error",
+		function_name => "cloud_az_set_loglevel_error",
+		function_args => [],
+	},
+
+	# cloud az set log
+	{
+		obj_type => "MENU",
+		name => "log",
+		parent_menu => "root_cloud_azure_set",
+		uniq_name => "root_cloud_azure_set_log",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL",
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the status of the log functionality",
+	},
+
+    # cloud az set log on
+	{
+		obj_type => "ITEM",
+		name => "on",
+		menu => "root_cloud_azure_set_log",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the log functionality on",
+		function_name => "cloud_az_set_log_on",
+		function_args => [],
+	},
+	
+	# cloud az set log off
+	{
+		obj_type => "ITEM",
+		name => "off",
+		menu => "root_cloud_azure_set_log",
+		cmd_attribute => "CMD_ARRAYOS|CMD_SPROXY|CMD_NORMAL|CMD_KILLABLE|CMD_NON_MORE",	
+		user_level => "CLI_LEVEL_CONFIG",
+		help_string => "Set the log functionality off",
+		function_name => "cloud_az_set_log_off",
+		function_args => [],
+	},
+
 	# cloud az set nicconfig
 
 	{
