31 #include "dsserverregisterlog.h"
32 #include "dshalregisterlog.h"
37 #include <sys/types.h>
43 #ifdef ENABLE_SD_NOTIFY
44 #include <systemd/sd-daemon.h>
46 #ifdef RDK_LOGGER_ENABLED
48 int b_rdk_logger_enabled = 0;
50 void logCallback(
const char *buff)
54 void dslogCallback(
int priority,
const char *buff)
60 else if(priority == 1)
64 else if(priority == 2)
68 else if(priority == 3)
76 int main(
int argc,
char *argv[])
78 const char* debugConfigFile = NULL;
83 if(strcmp(argv[itr],
"--debugconfig")==0)
88 debugConfigFile = argv[itr];
98 #ifdef RDK_LOGGER_ENABLED
101 IARM_Bus_RegisterForLog(logCallback);
102 DSServer_RegisterForLog(dslogCallback);
111 #ifdef ENABLE_SD_NOTIFY
112 sd_notifyf(0,
"READY=1\n"
113 "STATUS=DsMgr is Successfully Initialized\n"
114 "MAINPID=%lu", (
unsigned long) getpid());
118 #define xstr(s) str(s)