33 #include <sys/socket.h>
35 #include <sys/types.h>
39 #include "rdk_error.h"
40 #include "rdk_debug_priv.h"
41 #include "rdk_dynamic_logger.h"
45 static int isLogInited = 0;
61 char buf[BUF_LEN] = {
'\0'};
65 if (NULL == debugConfigFile)
67 debugConfigFile = DEBUG_CONF_FILE;
71 if ( RDK_SUCCESS != ret)
73 printf(
"%s:%d Adding debug config file %s failed\n", __FUNCTION__, __LINE__, DEBUG_CONF_FILE);
80 snprintf(buf, BUF_LEN-1,
"/tmp/%s",
"debugConfigFile_read");
81 buf[BUF_LEN-1] =
'\0';
83 if((0 == stat(buf, &st) && (0 != st.st_ino)))
85 printf(
"%s %s Already Stack Level Logging processed... not processing again.\n", __FUNCTION__, debugConfigFile);
97 signal(SIGPIPE, SIG_IGN);
112 rdk_dyn_log_deInit();