|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
133 #ifndef _RDK_DEBUG_H_
134 #define _RDK_DEBUG_H_
137 #include "rdk_logger_types.h"
138 #include "rdk_error.h"
147 #define DEBUG_INI_OVERRIDE_PATH "/nvram/debug.ini"
148 #define RDK_LOGGER_INIT() (0 == access(DEBUG_INI_OVERRIDE_PATH, F_OK)) \
149 ? rdk_logger_init(DEBUG_INI_OVERRIDE_PATH) \
150 : rdk_logger_init(DEBUG_INI_NAME);
185 #ifdef RDK_DEBUG_DEFINE_STRINGS
209 void RDK_LOG_ControlCB(
const char *moduleName,
const char *subComponentName,
const char *loggingLevel,
int log_status);
230 void rdk_log_onboard(const
char *module, const
char *msg, ...) __attribute__ ((format (printf, 2, 3)));
258 #define RDK_LOG rdk_dbg_MsgRaw
259 #define RDK_LOG1 rdk_dbg_MsgRaw1
void rdk_dbgInit()
Initialize the underlying MPEOS debug support. This API must be called only once per boot cycle.
rdk_logger_Bool rdk_dbg_enabled(const char *module, rdk_LogLevel level)
Function to check if a specific log level of a module is enabled.
void rdk_dbg_MsgRaw(rdk_LogLevel level, const char *module, const char *format,...) __attribute__((format(printf
Dump the debug log. It will Dump all the current settings so that an analysis of a log file will incl...
const char * rdk_logLevelStrings[ENUM_RDK_LOG_COUNT]
rdk_Error rdk_logger_deinit()
Cleanup the logger instantiation.
rdk_LogLevel
These values represent the logging 'levels' or 'types', they are each independent.
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...
void rdk_log_onboard(const char *module, const char *msg,...) __attribute__((format(printf
Dump the debug log. It will Dump all the current settings so that an analysis of a log file will incl...
rdk_Error rdk_logger_init(const char *debugConfigFile)
Initialize the logger. Sets up the environment variable storage by parsing debug configuration file t...
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...