Author: carnold Date: Wed Mar 8 22:10:35 2006 New Revision: 384443 URL: http://svn.apache.org/viewcvs?rev=384443&view=rev Log: Bug LOGCXX-4: Stray use of Level::INFO not Level::getInfo()
Modified: logging/log4cxx/trunk/src/logger.cpp Modified: logging/log4cxx/trunk/src/logger.cpp URL: http://svn.apache.org/viewcvs/logging/log4cxx/trunk/src/logger.cpp?rev=384443&r1=384442&r2=384443&view=diff ============================================================================== --- logging/log4cxx/trunk/src/logger.cpp (original) +++ logging/log4cxx/trunk/src/logger.cpp Wed Mar 8 22:10:35 2006 @@ -570,57 +570,57 @@ #if LOG4CXX_HAS_WCHAR_T void Logger::fatal(const std::wstring& msg, const log4cxx::spi::LocationInfo& location) { - if (isEnabledFor(log4cxx::Level::FATAL)) { - forcedLog(log4cxx::Level::FATAL, msg, location); + if (isEnabledFor(log4cxx::Level::getFatal())) { + forcedLog(log4cxx::Level::getFatal(), msg, location); } } #endif void Logger::fatal(const std::string& msg, const log4cxx::spi::LocationInfo& location) { - if (isEnabledFor(log4cxx::Level::FATAL)) { - forcedLog(log4cxx::Level::FATAL, msg, location); + if (isEnabledFor(log4cxx::Level::getFatal())) { + forcedLog(log4cxx::Level::getFatal(), msg, location); } } #if LOG4CXX_HAS_WCHAR_T void Logger::fatal(const std::wstring& msg) { - if (isEnabledFor(log4cxx::Level::FATAL)) { - forcedLog(log4cxx::Level::FATAL, msg); + if (isEnabledFor(log4cxx::Level::getFatal())) { + forcedLog(log4cxx::Level::getFatal(), msg); } } #endif void Logger::fatal(const std::string& msg) { - if (isEnabledFor(log4cxx::Level::FATAL)) { - forcedLog(log4cxx::Level::FATAL, msg); + if (isEnabledFor(log4cxx::Level::getFatal())) { + forcedLog(log4cxx::Level::getFatal(), msg); } } #if LOG4CXX_HAS_WCHAR_T void Logger::info(const std::wstring& msg, const log4cxx::spi::LocationInfo& location) { - if (isEnabledFor(log4cxx::Level::INFO)) { - forcedLog(log4cxx::Level::INFO, msg, location); + if (isEnabledFor(log4cxx::Level::getInfo())) { + forcedLog(log4cxx::Level::getInfo(), msg, location); } } #endif void Logger::info(const std::string& msg, const log4cxx::spi::LocationInfo& location) { - if (isEnabledFor(log4cxx::Level::INFO)) { - forcedLog(log4cxx::Level::INFO, msg, location); + if (isEnabledFor(log4cxx::Level::getInfo())) { + forcedLog(log4cxx::Level::getInfo(), msg, location); } } #if LOG4CXX_HAS_WCHAR_T void Logger::info(const std::wstring& msg) { - if (isEnabledFor(log4cxx::Level::INFO)) { - forcedLog(log4cxx::Level::INFO, msg); + if (isEnabledFor(log4cxx::Level::getInfo())) { + forcedLog(log4cxx::Level::getInfo(), msg); } } #endif void Logger::info(const std::string& msg) { - if (isEnabledFor(log4cxx::Level::INFO)) { - forcedLog(log4cxx::Level::INFO, msg); + if (isEnabledFor(log4cxx::Level::getInfo())) { + forcedLog(log4cxx::Level::getInfo(), msg); } } @@ -656,28 +656,28 @@ #if LOG4CXX_HAS_WCHAR_T void Logger::warn(const std::wstring& msg, const log4cxx::spi::LocationInfo& location) { - if (isEnabledFor(log4cxx::Level::WARN)) { - forcedLog(log4cxx::Level::WARN, msg, location); + if (isEnabledFor(log4cxx::Level::getWarn())) { + forcedLog(log4cxx::Level::getWarn(), msg, location); } } #endif void Logger::warn(const std::string& msg, const log4cxx::spi::LocationInfo& location) { - if (isEnabledFor(log4cxx::Level::WARN)) { - forcedLog(log4cxx::Level::WARN, msg, location); + if (isEnabledFor(log4cxx::Level::getWarn())) { + forcedLog(log4cxx::Level::getWarn(), msg, location); } } #if LOG4CXX_HAS_WCHAR_T void Logger::warn(const std::wstring& msg) { - if (isEnabledFor(log4cxx::Level::WARN)) { - forcedLog(log4cxx::Level::WARN, msg); + if (isEnabledFor(log4cxx::Level::getWarn())) { + forcedLog(log4cxx::Level::getWarn(), msg); } } #endif void Logger::warn(const std::string& msg) { - if (isEnabledFor(log4cxx::Level::WARN)) { - forcedLog(log4cxx::Level::WARN, msg); + if (isEnabledFor(log4cxx::Level::getWarn())) { + forcedLog(log4cxx::Level::getWarn(), msg); } }