00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00021 #ifndef __MONITUBE2_DATA_LOGGING_H__
00022 #define __MONITUBE2_DATA_LOGGING_H__
00023
00024 #include <jnx/logging.h>
00025
00026
00027
00031 #define CLOG(_level, _fmt...) \
00032 logging((_level), "MONITUBE PLUG-IN: " _fmt)
00033
00037 #define DLOG(_level, _fmt...) \
00038 msp_log((_level), "MONITUBE PLUG-IN: " _fmt)
00039
00043 #define INSIST_ERR(c) if (!(c)) \
00044 logging(LOG_EMERG, "MONITUBE PLUG-IN: %s:%d: insist '%s' failed!", \
00045 __FILE__, __LINE__, #c); else (void)NULL
00046
00047
00048
00049
00050
00051
00052 #endif
00053