Esempio n. 1
0
static void
noit_log_jlog_err(void *ctx, const char *format, ...) {
  struct timeval now;
  va_list arg;
  va_start(arg, format);
  gettimeofday(&now, NULL);
  (void)noit_vlog(noit_error, &now, "jlog.c", 0, format, arg);
  va_end(arg);
}
Esempio n. 2
0
int
noit_log(noit_log_stream_t ls, struct timeval *now,
         const char *file, int line, const char *format, ...) {
  int rv;
  va_list arg;
  va_start(arg, format);
  rv = noit_vlog(ls, now, file, line, format, arg);
  va_end(arg);
  return rv;
}