RDK Documentation (Open Sourced RDK Components)
rdk_debug.h File Reference
#include <stdio.h>
#include "rdk_logger_types.h"
#include "rdk_error.h"
Include dependency graph for rdk_debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_INI_OVERRIDE_PATH   "/nvram/debug.ini"
 
#define RDK_LOGGER_INIT()
 
#define RDK_LOG   rdk_dbg_MsgRaw
 
#define RDK_LOG1   rdk_dbg_MsgRaw1
 

Enumerations

enum  rdk_LogLevel
 These values represent the logging 'levels' or 'types', they are each independent. More...
 

Functions

void RDK_LOG_ControlCB (const char *moduleName, const char *subComponentName, const char *loggingLevel, int log_status)
 
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 include what logging information to expect. More...
 
void rdk_dbgInit ()
 Initialize the underlying MPEOS debug support. This API must be called only once per boot cycle. More...
 
rdk_Error rdk_logger_init (const char *debugConfigFile)
 Initialize the logger. Sets up the environment variable storage by parsing debug configuration file then Initialize the debug support to the underlying platform. More...
 
rdk_Error rdk_logger_deinit ()
 Cleanup the logger instantiation. More...
 
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 include what logging information to expect. More...
 
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 include what logging information to expect. More...
 
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. More...
 
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 include what logging information to expect. More...
 

Variables

const char * rdk_logLevelStrings [ENUM_RDK_LOG_COUNT]
 

yes

The header file provides RDK debug APIs.

Definition in file rdk_debug.h.