diff options
Diffstat (limited to 'project2/common/logger.cpp')
-rw-r--r-- | project2/common/logger.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/project2/common/logger.cpp b/project2/common/logger.cpp index dcdd1ab..95c2b15 100644 --- a/project2/common/logger.cpp +++ b/project2/common/logger.cpp @@ -2,7 +2,6 @@ #define SYSLOG_NAMES 1 // Enables the definition of names in syslog.h #include "logger.h" -#include <boost/foreach.hpp> #include "instanceStore.impl.h" Log Logger::log; @@ -27,7 +26,7 @@ Log::setLoggerAt(LogDriverLoader * ldr, int level) logs[ldr] = ldr->create(); } lowestLevel = -1; - BOOST_FOREACH(const auto & log, InstanceSet<LogDriverLoader>::GetAll()) { + for (const auto & log : InstanceSet<LogDriverLoader>::GetAll()) { if (log->loggerLevel() > lowestLevel) { lowestLevel = log->loggerLevel(); } @@ -50,7 +49,7 @@ void Log::message(int priority, const char * msg) const { if (priority > lowestLevel) return; - BOOST_FOREACH(const LogDrivers::value_type & l, logs) { + for (const LogDrivers::value_type & l : logs) { l.second->message(priority, msg); } } |