UniSet  2.24.2
SMLogSugar.h
1 #ifndef SMLogSugar_H_
2 #define SMLogSugar_H_
3 // "синтаксический сахар"..для логов
4 #ifndef sminfo
5 #define sminfo if( smlog->debugging(Debug::INFO) ) smlog->info()
6 #endif
7 #ifndef smwarn
8 #define smwarn if( smlog->debugging(Debug::WARN) ) smlog->warn()
9 #endif
10 #ifndef smcrit
11 #define smcrit if( smlog->debugging(Debug::CRIT) ) smlog->crit()
12 #endif
13 #ifndef smlog1
14 #define smlog1 if( smlog->debugging(Debug::LEVEL1) ) smlog->level1()
15 #endif
16 #ifndef smlog2
17 #define smlog2 if( smlog->debugging(Debug::LEVEL2) ) smlog->level2()
18 #endif
19 #ifndef smlog3
20 #define smlog3 if( smlog->debugging(Debug::LEVEL3) ) smlog->level3()
21 #endif
22 #ifndef smlog4
23 #define smlog4 if( smlog->debugging(Debug::LEVEL4) ) smlog->level4()
24 #endif
25 #ifndef smlog5
26 #define smlog5 if( smlog->debugging(Debug::LEVEL5) ) smlog->level5()
27 #endif
28 #ifndef smlog6
29 #define smlog6 if( smlog->debugging(Debug::LEVEL6) ) smlog->level6()
30 #endif
31 #ifndef smlog7
32 #define smlog7 if( smlog->debugging(Debug::LEVEL7) ) smlog->level7()
33 #endif
34 #ifndef smlog8
35 #define smlog8 if( smlog->debugging(Debug::LEVEL8) ) smlog->level8()
36 #endif
37 #ifndef smlog9
38 #define smlog9 if( smlog->debugging(Debug::LEVEL9) ) smlog->level9()
39 #endif
40 #ifndef smlogany
41 #define smlogany smlog->any()
42 #endif
43 #endif