Changeset 9748 for source/ariba/utility
- Timestamp:
- Apr 8, 2011, 2:18:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/logging/Logging.h
r9741 r9748 50 50 51 51 #ifdef LOGCOLORS 52 #define colorDefault { std::cout << "\033[0m"; } /*reset*/52 #define colorDefault { std::cout << "\033[0m"; } /*reset*/ 53 53 #define colorDebug { std::cout << "\033[0;33m"; } /*cyan*/ 54 54 #define colorInfo { std::cout << "\033[0;32m"; } /*green*/ 55 55 #define colorWarn { std::cout << "\033[0;34m"; } /*blue*/ 56 56 #define colorError { std::cout << "\033[0;31m"; } /*red*/ 57 58 57 #else 59 58 #define colorDefault { } … … 99 98 static int __loglevel__ = 2; //default is info 100 99 101 #define logging_trace(x) { logging_stdout(x);}100 #define logging_trace(x) { logging_stdout(x); } 102 101 #define logging_debug(x) {if(__loglevel__ <= 1){ colorDebug; logging_stdout(x); colorDefault; }} 103 102 #define logging_info(x) {if(__loglevel__ <= 2){ colorInfo; logging_stdout(x); colorDefault; }}
Note:
See TracChangeset
for help on using the changeset viewer.