Commit | Line | Data |
---|---|---|
1 | #ifndef FIO_LOG_H | |
2 | #define FIO_LOG_H | |
3 | ||
4 | #include <stdio.h> | |
5 | #include <stdarg.h> | |
6 | ||
7 | extern FILE *f_out; | |
8 | extern FILE *f_err; | |
9 | ||
10 | extern int log_err(const char *format, ...); | |
11 | extern int log_info(const char *format, ...); | |
12 | extern int log_local(const char *format, ...); | |
13 | extern int log_valist(const char *str, va_list); | |
14 | extern int log_local_buf(const char *buf, size_t); | |
15 | ||
16 | enum { | |
17 | FIO_LOG_DEBUG = 1, | |
18 | FIO_LOG_INFO = 2, | |
19 | FIO_LOG_ERR = 3, | |
20 | }; | |
21 | ||
22 | #endif |