UniSet 2.32.1
DBLogSugar.h
1#ifndef DBLogSugar_H_
2#define DBLogSugar_H_
3// "синтаксический сахар"..для логов
4#ifndef dbinfo
5#define dbinfo if( dblog->debugging(Debug::INFO) ) dblog->info()
6#endif
7#ifndef dbwarn
8#define dbwarn if( dblog->debugging(Debug::WARN) ) dblog->warn()
9#endif
10#ifndef dbcrit
11#define dbcrit if( dblog->debugging(Debug::CRIT) ) dblog->crit()
12#endif
13#ifndef dblog1
14#define dblog1 if( dblog->debugging(Debug::LEVEL1) ) dblog->level1()
15#endif
16#ifndef dblog2
17#define dblog2 if( dblog->debugging(Debug::LEVEL2) ) dblog->level2()
18#endif
19#ifndef dblog3
20#define dblog3 if( dblog->debugging(Debug::LEVEL3) ) dblog->level3()
21#endif
22#ifndef dblog4
23#define dblog4 if( dblog->debugging(Debug::LEVEL4) ) dblog->level4()
24#endif
25#ifndef dblog5
26#define dblog5 if( dblog->debugging(Debug::LEVEL5) ) dblog->level5()
27#endif
28#ifndef dblog6
29#define dblog6 if( dblog->debugging(Debug::LEVEL6) ) dblog->level6()
30#endif
31#ifndef dblog7
32#define dblog7 if( dblog->debugging(Debug::LEVEL7) ) dblog->level7()
33#endif
34#ifndef dblog8
35#define dblog8 if( dblog->debugging(Debug::LEVEL8) ) dblog->level8()
36#endif
37#ifndef dblog9
38#define dblog9 if( dblog->debugging(Debug::LEVEL9) ) dblog->level9()
39#endif
40#ifndef dblogany
41#define dblogany dblog->any()
42#endif
43#endif // end of DBLogSugar