|
UniSet
2.2.1
|
00001 #ifndef SMLogSugar_H_ 00002 #define SMLogSugar_H_ 00003 // "синтаксический сахар"..для логов 00004 #ifndef sminfo 00005 #define sminfo if( smlog->debugging(Debug::INFO) ) smlog->info() 00006 #endif 00007 #ifndef smwarn 00008 #define smwarn if( smlog->debugging(Debug::WARN) ) smlog->warn() 00009 #endif 00010 #ifndef smcrit 00011 #define smcrit if( smlog->debugging(Debug::CRIT) ) smlog->crit() 00012 #endif 00013 #ifndef smlog1 00014 #define smlog1 if( smlog->debugging(Debug::LEVEL1) ) smlog->level1() 00015 #endif 00016 #ifndef smlog2 00017 #define smlog2 if( smlog->debugging(Debug::LEVEL2) ) smlog->level2() 00018 #endif 00019 #ifndef smlog3 00020 #define smlog3 if( smlog->debugging(Debug::LEVEL3) ) smlog->level3() 00021 #endif 00022 #ifndef smlog4 00023 #define smlog4 if( smlog->debugging(Debug::LEVEL4) ) smlog->level4() 00024 #endif 00025 #ifndef smlog5 00026 #define smlog5 if( smlog->debugging(Debug::LEVEL5) ) smlog->level5() 00027 #endif 00028 #ifndef smlog6 00029 #define smlog6 if( smlog->debugging(Debug::LEVEL6) ) smlog->level6() 00030 #endif 00031 #ifndef smlog7 00032 #define smlog7 if( smlog->debugging(Debug::LEVEL7) ) smlog->level7() 00033 #endif 00034 #ifndef smlog8 00035 #define smlog8 if( smlog->debugging(Debug::LEVEL8) ) smlog->level8() 00036 #endif 00037 #ifndef smlog9 00038 #define smlog9 if( smlog->debugging(Debug::LEVEL9) ) smlog->level9() 00039 #endif 00040 #ifndef smlogany 00041 #define smlogany smlog->any() 00042 #endif 00043 #endif
1.7.6.1