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.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/common/Logging/Logger.h b/src/common/Logging/Logger.h
index 1446062c22b..7aac15396f3 100644
--- a/src/common/Logging/Logger.h
+++ b/src/common/Logging/Logger.h
@@ -18,15 +18,20 @@
#ifndef LOGGER_H
#define LOGGER_H
-#include "Appender.h"
+#include "Define.h"
+#include "LogCommon.h"
+#include <unordered_map>
+#include <string>
+
+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 +42,7 @@ class TC_COMMON_API Logger
private:
std::string name;
LogLevel level;
- AppenderMap appenders;
+ std::unordered_map<uint8, Appender*> appenders;
};
#endif