blob: 2b2cae0c74ee1aa975d5d91cf966c657ce0cc2d7 [file] [log] [blame]
Jens Axboea3d741f2008-02-27 18:32:33 +01001#ifndef FIO_LOG_H
2#define FIO_LOG_H
3
Jens Axboebf84eac2010-03-19 16:41:52 +01004#include <stdio.h>
Jens Axboeecd6cc12011-10-04 13:54:12 +02005#include <stdarg.h>
Jens Axboebf84eac2010-03-19 16:41:52 +01006
Jens Axboea3d741f2008-02-27 18:32:33 +01007extern FILE *f_out;
8extern FILE *f_err;
9
Jens Axboe142575e2011-09-30 17:35:45 -060010extern int log_err(const char *format, ...);
11extern int log_info(const char *format, ...);
Jens Axboe46c48f12011-10-01 12:50:51 -060012extern int log_local(const char *format, ...);
Jens Axboee46d8092011-10-03 09:11:02 +020013extern int log_valist(const char *str, va_list);
Jens Axboe13755d92011-10-10 19:51:26 +020014extern int log_local_buf(const char *buf, size_t);
Jens Axboea3d741f2008-02-27 18:32:33 +010015
Jens Axboe084d1c62012-03-03 20:28:07 +010016enum {
17 FIO_LOG_DEBUG = 1,
18 FIO_LOG_INFO = 2,
19 FIO_LOG_ERR = 3,
20};
21
Jens Axboea3d741f2008-02-27 18:32:33 +010022#endif