diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-05-11 22:29:51 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-05-11 22:29:51 +0200 |
commit | 3a418a0bbc8e155e5395595c5e25c038d3c7c773 (patch) | |
tree | 45359566bd6e360dd133e7ef43bc2a42e26baf56 /src/common/Logging/Logger.cpp | |
parent | 8abc56c540b5d2c583e40ad3d302c43068778ed1 (diff) |
Core/Common: Include cleanup
Diffstat (limited to 'src/common/Logging/Logger.cpp')
-rw-r--r-- | src/common/Logging/Logger.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/common/Logging/Logger.cpp b/src/common/Logging/Logger.cpp index 8e1f9c7ef9d..a3a72f15642 100644 --- a/src/common/Logging/Logger.cpp +++ b/src/common/Logging/Logger.cpp @@ -16,14 +16,10 @@ */ #include "Logger.h" +#include "Appender.h" +#include "LogMessage.h" -Logger::Logger(): name(""), level(LOG_LEVEL_DISABLED) { } - -void Logger::Create(std::string const& _name, LogLevel _level) -{ - name = _name; - level = _level; -} +Logger::Logger(std::string const& _name, LogLevel _level): name(_name), level(_level) { } std::string const& Logger::getName() const { @@ -58,7 +54,7 @@ void Logger::write(LogMessage* message) const return; } - for (AppenderMap::const_iterator it = appenders.begin(); it != appenders.end(); ++it) + for (auto it = appenders.begin(); it != appenders.end(); ++it) if (it->second) it->second->write(message); } |