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.h | |
parent | 8abc56c540b5d2c583e40ad3d302c43068778ed1 (diff) |
Core/Common: Include cleanup
Diffstat (limited to 'src/common/Logging/Logger.h')
-rw-r--r-- | src/common/Logging/Logger.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/common/Logging/Logger.h b/src/common/Logging/Logger.h index 1446062c22b..dabeb8ced3a 100644 --- a/src/common/Logging/Logger.h +++ b/src/common/Logging/Logger.h @@ -18,15 +18,19 @@ #ifndef LOGGER_H #define LOGGER_H -#include "Appender.h" +#include "Define.h" +#include "LogCommon.h" +#include <unordered_map> + +class Appender; +struct LogMessage; class TC_COMMON_API Logger { public: - Logger(); + Logger(std::string const& name, LogLevel level); - void Create(std::string const& name, LogLevel level); - void addAppender(uint8 type, Appender *); + void addAppender(uint8 type, Appender* appender); void delAppender(uint8 type); std::string const& getName() const; @@ -37,7 +41,7 @@ class TC_COMMON_API Logger private: std::string name; LogLevel level; - AppenderMap appenders; + std::unordered_map<uint8, Appender*> appenders; }; #endif |