Changeset 5638 for source/ariba/utility/logging
- Timestamp:
- Aug 4, 2009, 10:17:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/logging/Logging.h
r5634 r5638 44 44 #include <log4cxx/logger.h> 45 45 #include <log4cxx/basicconfigurator.h> 46 #include "ariba/config.h"47 46 48 47 … … 71 70 log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x)); 72 71 73 #ifdef HAVE_MAEMO 74 75 #define logging_trace(x) { } 76 #define logging_debug(x) { } 77 #define logging_info(x) { } 78 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } 79 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } 80 #define logging_force(x) { } 81 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } 82 83 #else 84 85 #define logging_trace(x) { LOG4CXX_TRACE(logger,x); } 86 #define logging_debug(x) {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; } 87 #define logging_info(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } 88 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } 89 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } 90 #define logging_force(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } 91 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } 92 93 #endif // HAVE_MAEMO 72 #define logging_trace(x) { LOG4CXX_TRACE(logger,x); } 73 #define logging_debug(x) {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; } 74 #define logging_info(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } 75 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } 76 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } 77 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } 94 78 95 79 #endif //LOGGING_H__
Note:
See TracChangeset
for help on using the changeset viewer.