31 #ifndef RTABMAP_FLANN_LOGGER_H 32 #define RTABMAP_FLANN_LOGGER_H 73 int _log(
int level,
const char* fmt, va_list arglist)
76 int ret = vfprintf(
stream, fmt, arglist);
105 static int log(
int level,
const char* fmt, ...)
108 va_start(arglist, fmt);
114 #define LOG_METHOD(NAME,LEVEL) \ 115 static int NAME(const char* fmt, ...) \ 119 int ret = instance()._log(LEVEL, fmt, ap); \ 137 #endif //RTABMAP_FLANN_LOGGER_H
static void setDestination(const char *name)
#define LOG_METHOD(NAME, LEVEL)
int _log(int level, const char *fmt, va_list arglist)
static void setLevel(int level)
static Logger & instance()
static int log(int level, const char *fmt,...)
void _setDestination(const char *name)