Changeset 5151 for source/ariba/utility
- Timestamp:
- Jul 21, 2009, 1:54:55 PM (15 years ago)
- Location:
- source/ariba/utility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/logging/Logging.h
r3690 r5151 69 69 log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x)); 70 70 71 #define logging_trace(x) { LOG4CXX_TRACE(logger,x); } 72 #define logging_debug(x) {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; } 73 #define logging_info(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } 74 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } 75 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } 76 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } 71 #ifdef HAVE_MAEMO 72 73 #define logging_trace(x) { } 74 #define logging_debug(x) { } 75 #define logging_info(x) { } 76 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } 77 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } 78 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } 79 80 #else 81 82 #define logging_trace(x) { LOG4CXX_TRACE(logger,x); } 83 #define logging_debug(x) {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; } 84 #define logging_info(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } 85 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } 86 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } 87 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } 88 89 #endif // HAVE_MAEMO 77 90 78 91 #endif //LOGGING_H__ -
source/ariba/utility/system/StartupWrapper.cpp
r4483 r5151 103 103 // set up again an individual level if you like 104 104 { 105 // log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(" BaseOverlay"));105 // log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("PingPong")); 106 106 // logger->setLevel(log4cxx::Level::getDebug()); 107 107 }
Note:
See TracChangeset
for help on using the changeset viewer.