An Overlay-based
Virtual Network Substrate
SpoVNet

Changeset 9894 for source


Ignore:
Timestamp:
Jun 30, 2011, 11:35:23 AM (8 years ago)
Author:
Christoph Mayer
Message:

-logging semantics vereinheitlicht

File:
1 edited

Legend:

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

    r9748 r9894  
    8484  #define logging_rootlevel_error()       {log4cxx::Logger::getRootLogger()->setLevel(log4cxx::Level::getError()); }
    8585
    86   #define logging_classlevel_debug(x) {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getDebug()); }
    87   #define logging_classlevel_info(x)  {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getInfo());  }
    88   #define logging_classlevel_warn(x)  {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getWarn());  }
    89   #define logging_classlevel_error(x) {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getError()); }
     86  #define logging_classlevel_debug(x) {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(#x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getDebug()); }
     87  #define logging_classlevel_info(x)  {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(#x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getInfo());  }
     88  #define logging_classlevel_warn(x)  {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(#x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getWarn());  }
     89  #define logging_classlevel_error(x) {log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(#x)); if(logger != NULL) logger->setLevel(log4cxx::Level::getError()); }
    9090
    9191#else // HAVE_LOG4CXX_LOGGER_H
Note: See TracChangeset for help on using the changeset viewer.