Changeset 5151 for source/ariba/utility


Ignore:
Timestamp:
Jul 21, 2009, 1:54:55 PM (15 years ago)
Author:
Christoph Mayer
Message:

begin merge back from relay branch

Location:
source/ariba/utility
Files:
2 edited

Legend:

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

    r3690 r5151  
    6969        log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x));
    7070
    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
    7790
    7891#endif //LOGGING_H__
  • source/ariba/utility/system/StartupWrapper.cpp

    r4483 r5151  
    103103        // set up again an individual level if you like
    104104        {
    105 //              log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("BaseOverlay"));
     105//              log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("PingPong"));
    106106//              logger->setLevel(log4cxx::Level::getDebug());
    107107        }
Note: See TracChangeset for help on using the changeset viewer.