Changeset 2467
- Timestamp:
- Feb 19, 2009, 4:45:14 PM (16 years ago)
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r2411 r2467 15 15 AC_ARG_ENABLE(doxygen, [ --enable-doxygen Enable doxygen documentation ], enable_doxygen=$enableval, enable_doxygen=no) 16 16 AM_CONDITIONAL(DOXYGEN, test "$enable_doxygen" = yes) 17 18 AC_ARG_ENABLE(logcolors, [ --enable-logcolors Enable colorful logging], enable_logcolors=$enableval, enable_logcolors=no) 19 AM_CONDITIONAL(LOGCOLORS, test "$enable_logcolors" = yes) 17 20 18 21 AC_PROG_LIBTOOL -
source/ariba/AribaModule.cpp
r2454 r2467 132 132 } 133 133 134 std::cout << "added bootstrap info: " << getBootstrapHints() << std::endl;134 //std::cout << "added bootstrap info: " << getBootstrapHints() << std::endl; 135 135 } 136 136 -
source/ariba/Makefile.am
r2461 r2467 35 35 if OMNET 36 36 AM_CPPFLAGS += -fPIC -DUNDERLAY_OMNET 37 endif 38 39 if LOGCOLORS 40 AM_CPPFLAGS += -DLOGCOLORS 37 41 endif 38 42 -
source/ariba/communication/modules/transport/protlib/logfile.cpp
r2466 r2467 119 119 if (logstream && !quiet) 120 120 { 121 (*logstream) << color[blue] << timenow() << '[' << getpid() << "] Redirecting Log output to \"" << filename << '\"' << endl;122 (*logstream) << color[blue] << timenow()123 << '[' << getpid() << "] <<<<<<<<<<<<<<<<<<<<<<<< *** LOG STOP *** <<<<<<<<<<<<<<<<<<<<<<<<"124 << color[off] << endl;121 // (*logstream) << color[blue] << timenow() << '[' << getpid() << "] Redirecting Log output to \"" << filename << '\"' << endl; 122 // (*logstream) << color[blue] << timenow() 123 // << '[' << getpid() << "] <<<<<<<<<<<<<<<<<<<<<<<< *** LOG STOP *** <<<<<<<<<<<<<<<<<<<<<<<<" 124 // << color[off] << endl; 125 125 } 126 126 … … 144 144 else 145 145 { 146 (*logstream) << color[blue] << timenow()147 << '[' << getpid() << "] >>>>>>>>>>>>>>>>>>>>>>>> *** LOG START *** >>>>>>>>>>>>>>>>>>>>>>>>"148 << color[off] << endl;146 // (*logstream) << color[blue] << timenow() 147 // << '[' << getpid() << "] >>>>>>>>>>>>>>>>>>>>>>>> *** LOG START *** >>>>>>>>>>>>>>>>>>>>>>>>" 148 // << color[off] << endl; 149 149 } 150 150 return true; -
source/ariba/communication/modules/transport/protlib/logfile.h
r2466 r2467 31 31 32 32 33 //#define _NO_LOGGING33 #define _NO_LOGGING 34 34 35 35 #include <fstream> // file stream … … 243 243 if (!quiet_start && logstream) 244 244 { 245 (*logstream) << color[blue] << timenow()246 << '[' << getpid() << "] >>>>>>>>>>>>>>>>>>>>>>>> *** LOG START *** >>>>>>>>>>>>>>>>>>>>>>>>"247 << color[off] << endl;245 // (*logstream) << color[blue] << timenow() 246 // << '[' << getpid() << "] >>>>>>>>>>>>>>>>>>>>>>>> *** LOG START *** >>>>>>>>>>>>>>>>>>>>>>>>" 247 // << color[off] << endl; 248 248 } 249 249 pthread_mutex_unlock(&logmutex); … … 260 260 261 261 if ( ! quiet_start ) 262 (*logstream) << color[blue] << timenow() << '[' << getpid()263 << "] <<<<<<<<<<<<<<<<<<<<<<<< *** LOG STOP *** <<<<<<<<<<<<<<<<<<<<<<<<"264 << color[off] << endl;262 // (*logstream) << color[blue] << timenow() << '[' << getpid() 263 // << "] <<<<<<<<<<<<<<<<<<<<<<<< *** LOG STOP *** <<<<<<<<<<<<<<<<<<<<<<<<" 264 // << color[off] << endl; 265 265 pthread_mutex_unlock(&logmutex); 266 266 -
source/ariba/communication/modules/transport/tcp/TCPTransport.cpp
r2466 r2467 314 314 315 315 // send message 316 cout << "Sending message ..." << endl;316 //cout << "Sending message ..." << endl; 317 317 sendMessage( new TextMessage( "Hello World!" ) ); 318 cout << "Message sent ..." << endl;318 //cout << "Message sent ..." << endl; 319 319 320 320 } -
source/ariba/communication/modules/transport/tcp/TCPTransport.h
r2466 r2467 41 41 42 42 // kill protlib logging 43 //#define _NO_LOGGING43 #define _NO_LOGGING 44 44 45 45 #include "ariba/utility/logging/Logging.h" -
source/ariba/utility/logging/Logging.h
r2455 r2467 45 45 #include <log4cxx/basicconfigurator.h> 46 46 47 #define colorDefault { std::cout << "\033[0m"; } /*reset*/ 48 #define colorDebug { std::cout << "\033[31m"; } /*gray*/ 49 #define colorInfo { std::cout << "\033[32m"; } /*green*/ 50 #define colorWarn { std::cout << "\033[34m"; } /*blue*/ 51 #define colorError { std::cout << "\033[31m"; } /*red*/ 47 #ifdef LOGCOLORS 48 49 #define colorDefault { std::cout << "\033[0m"; } /*reset*/ 50 #define colorDebug { std::cout << "\033[33m"; } /*cyan*/ 51 #define colorInfo { std::cout << "\033[32m"; } /*green*/ 52 #define colorWarn { std::cout << "\033[34m"; } /*blue*/ 53 #define colorError { std::cout << "\033[31m"; } /*red*/ 54 55 #else 56 57 #define colorDefault { } 58 #define colorDebug { } 59 #define colorInfo { } 60 #define colorWarn { } 61 #define colorError { } 62 63 #endif // ENABLE_LOGCOLORS 52 64 53 65 #define use_logging_h(x) \ … … 57 69 log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x)); 58 70 59 #define logging_trace(x) { LOG4CXX_TRACE(logger,x); }60 #define logging_debug(x) {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; }61 #define logging_info(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; }62 #define logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; }63 #define logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; }64 #define logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); exit(-1);}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); } 65 77 66 78 #endif //LOGGING_H__ -
source/ariba/utility/messages/MessageReceiver.cpp
r2466 r2467 50 50 51 51 bool MessageReceiver::receiveMessage( const Message* message, const LinkID& link, const NodeID& node ) { 52 std::cout << "UNIMPLEMENTED MessageReceiver got Message:" << (Message*)message << std::endl;52 //std::cout << "UNIMPLEMENTED MessageReceiver got Message:" << (Message*)message << std::endl; 53 53 return false; 54 54 } -
source/ariba/utility/system/Timer.cpp
r2466 r2467 89 89 90 90 void Timer::eventFunction() { 91 std::cout << "Timer(" << millis << ")" << std::endl;91 //std::cout << "unimplemented eventFunction Timer(" << millis << ")" << std::endl; 92 92 } 93 93
Note:
See TracChangeset
for help on using the changeset viewer.