Changeset 2467 for source/ariba/utility


Ignore:
Timestamp:
Feb 19, 2009, 4:45:14 PM (16 years ago)
Author:
Christoph Mayer
Message:

-logging farben über ./configure --enable-logcolors=yes einschaltbar, sonst per default ausgeschalten
-alls std::cout auskommentiert

Location:
source/ariba/utility
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/logging/Logging.h

    r2455 r2467  
    4545#include <log4cxx/basicconfigurator.h>
    4646
    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
    5264
    5365#define use_logging_h(x) \
     
    5769        log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x));
    5870
    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); }
    6577
    6678#endif //LOGGING_H__
  • source/ariba/utility/messages/MessageReceiver.cpp

    r2466 r2467  
    5050
    5151bool 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;
    5353        return false;
    5454}
  • source/ariba/utility/system/Timer.cpp

    r2466 r2467  
    8989
    9090void Timer::eventFunction() {
    91         std::cout << "Timer(" << millis << ")" << std::endl;
     91        //std::cout << "unimplemented eventFunction Timer(" << millis << ")" << std::endl;
    9292}
    9393
Note: See TracChangeset for help on using the changeset viewer.