fio2gnuplot: Keep original filename in temp. files
[fio.git] / log.h
CommitLineData
a3d741fa
JA
1#ifndef FIO_LOG_H
2#define FIO_LOG_H
3
bf84eacb 4#include <stdio.h>
ecd6cc10 5#include <stdarg.h>
bf84eacb 6
a3d741fa
JA
7extern FILE *f_out;
8extern FILE *f_err;
9
7089165b
JA
10extern int log_err(const char *format, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
11extern int log_info(const char *format, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
12extern int log_local(const char *format, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
e46d8091 13extern int log_valist(const char *str, va_list);
13755d94 14extern int log_local_buf(const char *buf, size_t);
fdd5f15f 15extern int log_info_flush(void);
a3d741fa 16
084d1c6f
JA
17enum {
18 FIO_LOG_DEBUG = 1,
19 FIO_LOG_INFO = 2,
20 FIO_LOG_ERR = 3,
3ad04399 21 FIO_LOG_NR = 4,
084d1c6f
JA
22};
23
3ad04399
JA
24extern const char *log_get_level(int level);
25
a3d741fa 26#endif