22 #include "rdk_log_reg.h"
70 void CC_LOG_ControlCB1(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
72 printf(
"TEST : CC_LOG_ControlCB1 called for ClosedCaptions1\n");
73 printf(
"TEST : ##############Data obtained ################\n");
74 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
76 void CC_LOG_ControlCB2(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
78 printf(
"TEST : CC_LOG_ControlCB2 called for ClosedCaptions2\n");
79 printf(
"TEST : ##############Data obtained ################\n");
80 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
82 void CC_LOG_ControlCB3(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
84 printf(
"TEST : CC_LOG_ControlCB3 called for ServiceManager devicesettings\n");
85 printf(
"TEST : ##############Data obtained ################\n");
86 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
88 void CC_LOG_ControlCB4(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
90 printf(
"TEST : CC_LOG_ControlCB4 called for ServiceManager hdmicec\n");
91 printf(
"TEST : ##############Data obtained ################\n");
92 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
94 void CC_LOG_CallBack1(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
96 printf(
"TEST : CC_LOG_CallBack1 called for ClosedCaptions1\n");
97 printf(
"TEST : ##############Data obtained ################\n");
98 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
100 void CC_LOG_CallBack2(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
102 printf(
"TEST : CC_LOG_CallBack2 called for ClosedCaptions2\n");
103 printf(
"TEST : ##############Data obtained ################\n");
104 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
106 void CC_LOG_CallBack3(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
108 printf(
"TEST : CC_LOG_CallBack3 called for ServiceManager devicesettings\n");
109 printf(
"TEST : ##############Data obtained ################\n");
110 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
112 void CC_LOG_CallBack4(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status)
114 printf(
"TEST : CC_LOG_CallBack4 called for ServiceManager hdmicec\n");
115 printf(
"TEST : ##############Data obtained ################\n");
116 printf(
"TEST : moduleName : %s subComponentName : %s loggingLevel : %s log_status : %d\n",moduleName,subComponentName,loggingLevel,log_status);
119 #define IARM_BUS_DYNAMIC_LOGGER_TESTAPP "LOG_TESTER"
125 rdk_logger_initialize();
128 printf(
"Thanks for using Dynamic Logger TestApp \n");
129 printf(
"Please select the App name\n 1 - Application1 2 - Application2 \n");
136 printf(
"Registering app Application1 \n");
137 rdk_logger_setAppName(
"Application1");
138 rdk_logger_registerLogCtrlComp(
"ClosedCaption1", NULL, CC_LOG_ControlCB1);
139 rdk_logger_registerLogCtrlComp(
"ClosedCaption2", NULL, CC_LOG_ControlCB2);
140 rdk_logger_registerLogCtrlComp(
"ServiceManager",
"devicesettings", CC_LOG_ControlCB3);
141 rdk_logger_registerLogCtrlComp(
"ServiceManager",
"hdmicec", CC_LOG_ControlCB4);
147 printf(
"Registering app Application2 \n");
148 rdk_logger_setAppName(
"Application2");
149 rdk_logger_registerLogCtrlComp(
"ClosedCaption1", NULL, CC_LOG_CallBack1);
150 rdk_logger_registerLogCtrlComp(
"ClosedCaption2", NULL, CC_LOG_CallBack2);
151 rdk_logger_registerLogCtrlComp(
"ServiceManager",
"devicesettings", CC_LOG_CallBack3);
152 rdk_logger_registerLogCtrlComp(
"ServiceManager",
"hdmicec", CC_LOG_CallBack4);
164 rdk_logger_unRegisterLogCtrlComp(
"ServiceManager",
"hdmicec");
165 rdk_logger_unRegisterLogCtrlComp(
"ClosedCaption2", NULL);
166 rdk_logger_unRegisterLogCtrlComp(
"ClosedCaption1", NULL);
167 rdk_logger_unRegisterLogCtrlComp(
"ServiceManager",
"devicesettings");
169 rdk_logger_unInitialize();