UniSet  2.7.0
IOLogSugar.h
1 #ifndef IOLogSugar_H_
2 #define IOLogSugar_H_
3 // "синтаксический сахар"..для логов
4 #ifndef ioinfo
5 #define ioinfo if( iolog->debugging(Debug::INFO) ) iolog->info()
6 #endif
7 #ifndef iowarn
8 #define iowarn if( iolog->debugging(Debug::WARN) ) iolog->warn()
9 #endif
10 #ifndef iocrit
11 #define iocrit if( iolog->debugging(Debug::CRIT) ) iolog->crit()
12 #endif
13 #ifndef iolog1
14 #define iolog1 if( iolog->debugging(Debug::LEVEL1) ) iolog->level1()
15 #endif
16 #ifndef iolog2
17 #define iolog2 if( iolog->debugging(Debug::LEVEL2) ) iolog->level2()
18 #endif
19 #ifndef iolog3
20 #define iolog3 if( iolog->debugging(Debug::LEVEL3) ) iolog->level3()
21 #endif
22 #ifndef iolog4
23 #define iolog4 if( iolog->debugging(Debug::LEVEL4) ) iolog->level4()
24 #endif
25 #ifndef iolog5
26 #define iolog5 if( iolog->debugging(Debug::LEVEL5) ) iolog->level5()
27 #endif
28 #ifndef iolog6
29 #define iolog6 if( iolog->debugging(Debug::LEVEL6) ) iolog->level6()
30 #endif
31 #ifndef iolog7
32 #define iolog7 if( iolog->debugging(Debug::LEVEL7) ) iolog->level7()
33 #endif
34 #ifndef iolog8
35 #define iolog8 if( iolog->debugging(Debug::LEVEL8) ) iolog->level8()
36 #endif
37 #ifndef iolog9
38 #define iolog9 if( iolog->debugging(Debug::LEVEL9) ) iolog->level9()
39 #endif
40 #ifndef iologany
41 #define iologany iolog->any()
42 #endif
43 #endif