PageRenderTime 308ms CodeModel.GetById 110ms app.highlight 2ms RepoModel.GetById 195ms app.codeStats 0ms

/src/test/log_test.c

http://ftk.googlecode.com/
C | 25 lines | 21 code | 4 blank | 0 comment | 0 complexity | e11959bf933d591940e0a6e4284ebdee MD5 | raw file
 1#include "ftk_log.h"
 2#include "ftk_globals.h"
 3
 4int main(int argc, char* argv[])
 5{
 6	ftk_set_log_level(FTK_LOG_V);
 7	printf("log_level=FTK_LOG_E\n");
 8	ftk_logv("logv\n");	
 9	ftk_logd("logd\n");	
10	ftk_loge("loge\n");	
11	
12	ftk_set_log_level(FTK_LOG_D);
13	printf("log_level=FTK_LOG_E\n");
14	ftk_logv("logv\n");	
15	ftk_logd("logd\n");	
16	ftk_loge("loge\n");	
17	
18	ftk_set_log_level(FTK_LOG_E);
19	printf("log_level=FTK_LOG_E\n");
20	ftk_logv("logv\n");	
21	ftk_logd("logd\n");	
22	ftk_loge("loge\n");	
23	
24	return 0;
25}