6 #define LOG_NMGR "LOG.RDK.NETSRVMGR"
12 #define LOG_ERR(fmt, ...) RDK_LOG(RDK_LOG_ERROR, LOG_NMGR, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__)
13 #define LOG_INFO(fmt, ...) RDK_LOG(RDK_LOG_INFO, LOG_NMGR, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__)
14 #define LOG_WARN(fmt, ...) RDK_LOG(RDK_LOG_WARN, LOG_NMGR, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__)
15 #define LOG_DBG(fmt, ...) RDK_LOG(RDK_LOG_DEBUG, LOG_NMGR, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__)
16 #define LOG_TRACE(fmt, ...) RDK_LOG(RDK_LOG_TRACE1, LOG_NMGR, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__)
17 #define LOG_FATAL(fmt, ...) RDK_LOG(RDK_LOG_FATAL, LOG_NMGR, "[%s:%d] " fmt "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__)
26 EntryExitLogger (
const char* func,
const int line) : func (func), line (line)
28 RDK_LOG(RDK_LOG_TRACE1, LOG_NMGR,
"[%s:%d] Entry\n", func, line);
32 RDK_LOG(RDK_LOG_TRACE1, LOG_NMGR,
"[%s:%d] Exit \n", func, line);
36 #define LOG_ENTRY_EXIT EntryExitLogger entry_exit_logger (__FUNCTION__, __LINE__)