UniSet  2.2.1
UNetLogSugar.h
00001 #ifndef UNETLogSugar_H_
00002 #define UNETLogSugar_H_
00003 // "синтаксический сахар"..для логов
00004 #ifndef unetinfo
00005 #define unetinfo if( unetlog->debugging(Debug::INFO) ) unetlog->info()
00006 #endif
00007 #ifndef unetwarn
00008 #define unetwarn if( unetlog->debugging(Debug::WARN) ) unetlog->warn()
00009 #endif
00010 #ifndef unetcrit
00011 #define unetcrit if( unetlog->debugging(Debug::CRIT) ) unetlog->crit()
00012 #endif
00013 #ifndef unetlog1
00014 #define unetlog1 if( unetlog->debugging(Debug::LEVEL1) ) unetlog->level1()
00015 #endif
00016 #ifndef unetlog2
00017 #define unetlog2 if( unetlog->debugging(Debug::LEVEL2) ) unetlog->level2()
00018 #endif
00019 #ifndef unetlog3
00020 #define unetlog3 if( unetlog->debugging(Debug::LEVEL3) ) unetlog->level3()
00021 #endif
00022 #ifndef unetlog4
00023 #define unetlog4 if( unetlog->debugging(Debug::LEVEL4) ) unetlog->level4()
00024 #endif
00025 #ifndef unetlog5
00026 #define unetlog5 if( unetlog->debugging(Debug::LEVEL5) ) unetlog->level5()
00027 #endif
00028 #ifndef unetlog6
00029 #define unetlog6 if( unetlog->debugging(Debug::LEVEL6) ) unetlog->level6()
00030 #endif
00031 #ifndef unetlog7
00032 #define unetlog7 if( unetlog->debugging(Debug::LEVEL7) ) unetlog->level7()
00033 #endif
00034 #ifndef unetlog8
00035 #define unetlog8 if( unetlog->debugging(Debug::LEVEL8) ) unetlog->level8()
00036 #endif
00037 #ifndef unetlog9
00038 #define unetlog9 if( unetlog->debugging(Debug::LEVEL9) ) unetlog->level9()
00039 #endif
00040 #ifndef unetlogany
00041 #define unetlogany unetlog->any()
00042 #endif
00043 #endif // end of UNETLogSugar