]> pilppa.org Git - libplp.git/blob - src/log.h
updates to log_debug/info/warning/error functions
[libplp.git] / src / log.h
1 /*
2  * log.h
3  *
4  *  Created on: Oct 2, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef LOG_H_
9 #define LOG_H_
10
11 #include <stdio.h>
12
13 #define log_debug(a, b...) fprintf(stdout, "[dbg] %s: " a, __FUNCTION__, ## b)
14 #define log_info(a, b...) fprintf(stdout, "[inf] %s: " a, __FUNCTION__, ## b)
15 #define log_warning(a, b...) fprintf(stderr, "[wrn] %s: " a, __FUNCTION__, ## b)
16 #define log_error(a, b...) fprintf(stderr, "[err] %s: " a, __FUNCTION__, ## b)
17
18 #endif /* LOG_H_ */