Add new net command for text logging
[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
142575e6
JA
10extern int log_err(const char *format, ...);
11extern int log_info(const char *format, ...);
46c48f1f 12extern int log_local(const char *format, ...);
e46d8091 13extern int log_valist(const char *str, va_list);
13755d94 14extern int log_local_buf(const char *buf, size_t);
a3d741fa 15
084d1c6f
JA
16enum {
17 FIO_LOG_DEBUG = 1,
18 FIO_LOG_INFO = 2,
19 FIO_LOG_ERR = 3,
20};
21
a3d741fa 22#endif