+
+ if (l_level & YLOG_NOTIME)
+ tbuf[0] = '\0';
+ else
+ strftime(tbuf, TIMEFORMAT_LEN-1, l_actual_format, tm);
+ tbuf[TIMEFORMAT_LEN-1] = '\0';
+
+ fprintf(file, "%s %s%s %s%s\n", tbuf, l_prefix, flags, l_prefix2, buf);
+ if (l_level & (YLOG_FLUSH|YLOG_DEBUG) )
+ fflush(file);
+ }
+ nmem_mutex_leave(log_mutex);
+}
+
+void yaz_log(int level, const char *fmt, ...)
+{
+ va_list ap;
+ char buf[4096];
+ FILE *file;
+ int o_level = level;