aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Logging/Logger.h')
-rw-r--r--src/common/Logging/Logger.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/Logging/Logger.h b/src/common/Logging/Logger.h
index 046f5464f40..71f6396fd94 100644
--- a/src/common/Logging/Logger.h
+++ b/src/common/Logging/Logger.h
@@ -20,8 +20,8 @@
#include "Define.h"
#include "LogCommon.h"
-#include <unordered_map>
#include <string>
+#include <vector>
class Appender;
struct LogMessage;
@@ -31,8 +31,7 @@ class TC_COMMON_API Logger
public:
Logger(std::string const& name, LogLevel level);
- void addAppender(uint8 type, Appender* appender);
- void delAppender(uint8 type);
+ void addAppender(Appender* appender);
std::string const& getName() const;
LogLevel getLogLevel() const;
@@ -42,7 +41,7 @@ class TC_COMMON_API Logger
private:
std::string name;
LogLevel level;
- std::unordered_map<uint8, Appender*> appenders;
+ std::vector<Appender*> appenders;
};
#endif