4 #include "SsbSipLogMsg.h"
7 static const LOG_LEVEL log_level
= LOG_TRACE
;
8 static const char *modulename
= MODULE_NAME
;
9 static const char *level_str
[] = {"TRACE", "WARNING", "ERROR"};
11 void LOG_MSG(LOG_LEVEL level
, const char *func_name
, const char *msg
, ...)
17 if (level
< log_level
)
20 sprintf(buf
, "[%s: %s] %s: ", modulename
, level_str
[level
], func_name
);
22 va_start(argptr
, msg
);
23 vsprintf(buf
+ strlen(buf
), msg
, argptr
);