UniSet  2.6.0
UNetLogSugar.h
1 #ifndef UNETLogSugar_H_
2 #define UNETLogSugar_H_
3 // "синтаксический сахар"..для логов
4 #ifndef unetinfo
5 #define unetinfo if( unetlog->debugging(Debug::INFO) ) unetlog->info()
6 #endif
7 #ifndef unetwarn
8 #define unetwarn if( unetlog->debugging(Debug::WARN) ) unetlog->warn()
9 #endif
10 #ifndef unetcrit
11 #define unetcrit if( unetlog->debugging(Debug::CRIT) ) unetlog->crit()
12 #endif
13 #ifndef unetlog1
14 #define unetlog1 if( unetlog->debugging(Debug::LEVEL1) ) unetlog->level1()
15 #endif
16 #ifndef unetlog2
17 #define unetlog2 if( unetlog->debugging(Debug::LEVEL2) ) unetlog->level2()
18 #endif
19 #ifndef unetlog3
20 #define unetlog3 if( unetlog->debugging(Debug::LEVEL3) ) unetlog->level3()
21 #endif
22 #ifndef unetlog4
23 #define unetlog4 if( unetlog->debugging(Debug::LEVEL4) ) unetlog->level4()
24 #endif
25 #ifndef unetlog5
26 #define unetlog5 if( unetlog->debugging(Debug::LEVEL5) ) unetlog->level5()
27 #endif
28 #ifndef unetlog6
29 #define unetlog6 if( unetlog->debugging(Debug::LEVEL6) ) unetlog->level6()
30 #endif
31 #ifndef unetlog7
32 #define unetlog7 if( unetlog->debugging(Debug::LEVEL7) ) unetlog->level7()
33 #endif
34 #ifndef unetlog8
35 #define unetlog8 if( unetlog->debugging(Debug::LEVEL8) ) unetlog->level8()
36 #endif
37 #ifndef unetlog9
38 #define unetlog9 if( unetlog->debugging(Debug::LEVEL9) ) unetlog->level9()
39 #endif
40 #ifndef unetlogany
41 #define unetlogany unetlog->any()
42 #endif
43 #endif // end of UNETLogSugar