Ignore:
Timestamp:
Apr 7, 2011, 4:36:00 PM (13 years ago)
Author:
Christoph Mayer
Message:

-logging optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/system/StartupWrapper.cpp

    r7916 r9737  
    4141
    4242#ifdef HAVE_LOG4CXX_LOGGER_H
    43 #include <log4cxx/logger.h>
    44 #include <log4cxx/basicconfigurator.h>
     43        #include <log4cxx/logger.h>
     44        #include <log4cxx/basicconfigurator.h>
    4545#endif // HAVE_LOG4CXX_LOGGER_H
    4646
     
    9696        // init the logging system
    9797        //
    98         // configure the logging
    99         //
    100        
     98
    10199#ifdef HAVE_LOG4CXX_LOGGER_H
    102100        log4cxx::BasicConfigurator::configure();
     101#endif //HAVE_LOG4CXX_LOGGER_H
    103102
    104         // set the global log level to warning
    105         {
    106                 log4cxx::LoggerPtr logger(log4cxx::Logger::getRootLogger());
    107                 logger->setLevel(log4cxx::Level::getInfo());
    108         }
     103        //
     104        // configure the default logging level to info
     105        //
    109106
    110         // set up again an individual level if you like
    111 #ifndef HAVE_MAEMO
    112         {
    113                 //log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("MCPO"));
    114                 //logger->setLevel(log4cxx::Level::getDebug());
    115         }
    116 #endif //HAVE_MAEMO
    117 #endif //HAVE_LOG4CXX_LOGGER_H
     107        logging_rootlevel_info();
    118108}
    119109
Note: See TracChangeset for help on using the changeset viewer.