2 * Copyright (c) 2005 Christophe Varoqui
8 #include "log_pthread.h"
15 void dlog (int sink, int prio, const char * fmt, ...)
21 thres = (conf) ? conf->verbosity : 0;
25 time_t t = time(NULL);
26 struct tm *tb = localtime(&t);
29 strftime(buff, sizeof(buff), "%b %d %H:%M:%S", tb);
30 buff[sizeof(buff)-1] = '\0';
32 fprintf(stdout, "%s | ", buff);
33 vfprintf(stdout, fmt, ap);
36 log_safe(prio + 3, fmt, ap);