Changeset 9894 for source/ariba/utility
- Timestamp:
- Jun 30, 2011, 11:35:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/logging/Logging.h
r9748 r9894 84 84 #define logging_rootlevel_error() {log4cxx::Logger::getRootLogger()->setLevel(log4cxx::Level::getError()); } 85 85 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()); } 90 90 91 91 #else // HAVE_LOG4CXX_LOGGER_H
Note:
See TracChangeset
for help on using the changeset viewer.