|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
34 #include <rdk_debug_priv.h>
52 FILE * fp = fopen(pszFile,
"w");
71 const char *modptr = NULL;
72 RDK_LOG(RDK_LOG_INFO,
"LOG.RDK.OS",
"\n");
73 RDK_LOG(RDK_LOG_INFO,
"LOG.RDK.OS",
74 "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
75 RDK_LOG(RDK_LOG_INFO,
"LOG.RDK.OS",
"Stack level logging levels: \n");
85 memset(config, 0,
sizeof(config));
87 RDK_LOG(RDK_LOG_INFO,
"LOG.RDK.OS",
88 "Initial Logging Level for %-10s: %s\n", modptr, config);
91 RDK_LOG(RDK_LOG_INFO,
"LOG.RDK.OS",
92 "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n\n");
102 static rdk_logger_Bool inited = FALSE;
120 const char *format, ...)
122 #if !defined(RDK_LOG_DISABLE)
126 va_start(args, format);
133 rdk_debug_priv_log_msg( level, num, module,
140 const char *format, va_list args)
142 #if !defined(RDK_LOG_DISABLE)
151 rdk_debug_priv_log_msg( level, num, module,
const char * rdk_logger_envGetModFromNum(int Num)
This function is used to get the name of the specified environment variable based on its registered n...
void rdk_dbgDumpLog(const char *path)
Dump the debug log. It will Dump all the current settings so that an analysis of a log file will incl...
static void TouchFile(const char *pszFile)
Touch the file which can be used to check whether to log or not.
int rdk_logger_envGetNum(const char *mod)
Function will give the registered number of the specified environment variable.
void rdk_dbg_MsgRaw(rdk_LogLevel level, const char *module, const char *format,...)
Send a debugging message to the debugging window. It is appended to the log output based on configura...
rdk_LogLevel
These values represent the logging 'levels' or 'types', they are each independent.
const char * rdk_dbg_priv_LogQueryOpSysIntf(char *modName, char *cfgStr, int cfgStrMaxLen)
void rdk_dbgInit()
Initialize the underlying MPEOS debug support. This API must be called only once per boot cycle.
void void rdk_dbg_MsgRaw1(rdk_LogLevel level, const char *module, const char *format, va_list args)
Dump the debug log. It will Dump all the current settings so that an analysis of a log file will incl...
#define TRUE
Defines for TRUE/FALSE/ENABLE flags.