29 #include "dsserverlogger.h"
32 #define MAX_LOG_BUFF 500
34 DSServer_LogCb logCb = NULL;
36 void DSServer_RegisterForLog(DSServer_LogCb cb)
41 int ds_server_log(
int priority,
const char *format, ...)
43 char tmp_buff[MAX_LOG_BUFF];
45 va_start(args, format);
46 vsnprintf(tmp_buff,MAX_LOG_BUFF-1,format, args);
50 logCb(priority,tmp_buff);
54 return printf(tmp_buff);