fsautoproc
Basic file transformation automation management utility
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1
3
#ifndef FSAUTOPROC_LOG_H
4
#define FSAUTOPROC_LOG_H
5
9
#ifdef __FILE_NAME__
10
#define LOG_FILE_MACRO __FILE_NAME__
11
#else
12
#define LOG_FILE_MACRO __FILE__
13
#endif
14
18
#define log_info(fmt, ...) printf(fmt " \n", __VA_ARGS__)
19
24
#define log_verbose(fmt, ...) printf(fmt " \n", __VA_ARGS__)
25
29
#define log_error(fmt, ...) \
30
fprintf(stderr, "[!] " fmt " [%s:%d]\n", __VA_ARGS__, LOG_FILE_MACRO, \
31
__LINE__)
32
33
#endif
//FSAUTOPROC_LOG_H
include
log.h
Generated by
1.12.0