len = vsnprintf(buffer, sizeof(buffer), str, args);
len = min(len, sizeof(buffer) - 1);
+ if (is_backend)
+ len = fio_server_text_output(FIO_LOG_INFO, buffer, len);
if (log_syslog)
syslog(LOG_INFO, "%s", buffer);
else
return fwrite(buffer, len, 1, f_out);
}
+int log_info_flush(void)
+{
+ if (is_backend || log_syslog)
+ return 0;
+
+ return fflush(f_out);
+}
+
int log_err(const char *format, ...)
{
char buffer[1024];