/* * log.h * * Created on: Oct 2, 2010 * Author: lamikr */ #ifndef LOG_H_ #define LOG_H_ #include #define log_debug(a, b...) fprintf(stdout, "[dbg] %s: " a, __FUNCTION__, ## b) #define log_info(a, b...) fprintf(stdout, "[inf] %s: " a, __FUNCTION__, ## b) #define log_warning(a, b...) fprintf(stderr, "[wrn] %s: " a, __FUNCTION__, ## b) #define log_error(a, b...) fprintf(stderr, "[err] %s: " a, __FUNCTION__, ## b) #endif /* LOG_H_ */