|
UniSet
2.2.1
|
00001 #ifndef IOLogSugar_H_ 00002 #define IOLogSugar_H_ 00003 // "синтаксический сахар"..для логов 00004 #ifndef ioinfo 00005 #define ioinfo if( iolog->debugging(Debug::INFO) ) iolog->info() 00006 #endif 00007 #ifndef iowarn 00008 #define iowarn if( iolog->debugging(Debug::WARN) ) iolog->warn() 00009 #endif 00010 #ifndef iocrit 00011 #define iocrit if( iolog->debugging(Debug::CRIT) ) iolog->crit() 00012 #endif 00013 #ifndef iolog1 00014 #define iolog1 if( iolog->debugging(Debug::LEVEL1) ) iolog->level1() 00015 #endif 00016 #ifndef iolog2 00017 #define iolog2 if( iolog->debugging(Debug::LEVEL2) ) iolog->level2() 00018 #endif 00019 #ifndef iolog3 00020 #define iolog3 if( iolog->debugging(Debug::LEVEL3) ) iolog->level3() 00021 #endif 00022 #ifndef iolog4 00023 #define iolog4 if( iolog->debugging(Debug::LEVEL4) ) iolog->level4() 00024 #endif 00025 #ifndef iolog5 00026 #define iolog5 if( iolog->debugging(Debug::LEVEL5) ) iolog->level5() 00027 #endif 00028 #ifndef iolog6 00029 #define iolog6 if( iolog->debugging(Debug::LEVEL6) ) iolog->level6() 00030 #endif 00031 #ifndef iolog7 00032 #define iolog7 if( iolog->debugging(Debug::LEVEL7) ) iolog->level7() 00033 #endif 00034 #ifndef iolog8 00035 #define iolog8 if( iolog->debugging(Debug::LEVEL8) ) iolog->level8() 00036 #endif 00037 #ifndef iolog9 00038 #define iolog9 if( iolog->debugging(Debug::LEVEL9) ) iolog->level9() 00039 #endif 00040 #ifndef iologany 00041 #define iologany iolog->any() 00042 #endif 00043 #endif
1.7.6.1