diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 23:51:34 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 23:51:34 +0200 |
commit | a7a285eb61dd83afc892bc1d64ffe14b9f1426a3 (patch) | |
tree | 08d2efcaec46e5f5702d9e336a0e8ba7e636aff9 /src/Core/LogManager.h | |
parent | b40ba0cf91603b695f1f2380cbd39966a458f22f (diff) | |
download | mad-a7a285eb61dd83afc892bc1d64ffe14b9f1426a3.tar mad-a7a285eb61dd83afc892bc1d64ffe14b9f1426a3.zip |
Completely migrate to Unicode String class
Diffstat (limited to 'src/Core/LogManager.h')
-rw-r--r-- | src/Core/LogManager.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Core/LogManager.h b/src/Core/LogManager.h index 4f7c500..a1f3d7d 100644 --- a/src/Core/LogManager.h +++ b/src/Core/LogManager.h @@ -51,8 +51,8 @@ class MAD_CORE_EXPORT LogManager : public Configurable { MessageCategory category; MessageLevel level; boost::posix_time::ptime timestamp; - std::string message; - std::string source; + Core::String message; + Core::String source; }; class ConsoleLogger : public Logger { @@ -62,12 +62,12 @@ class MAD_CORE_EXPORT LogManager : public Configurable { boost::mutex cerrMutex; protected: - virtual void logMessage(MessageCategory category, MessageLevel, boost::posix_time::ptime timestamp, const std::string &message, const std::string &source); + virtual void logMessage(MessageCategory category, MessageLevel, boost::posix_time::ptime timestamp, const Core::String &message, const Core::String &source); public: ConsoleLogger() {} - void logMessageDirect(MessageCategory category, MessageLevel level, boost::posix_time::ptime timestamp, const std::string &message, const std::string &source); + void logMessageDirect(MessageCategory category, MessageLevel level, boost::posix_time::ptime timestamp, const Core::String &message, const Core::String &source); }; @@ -102,7 +102,7 @@ class MAD_CORE_EXPORT LogManager : public Configurable { public: static MessageLevel parseLevel(const String &str) throw (Exception); - void log(MessageCategory category, MessageLevel level, boost::posix_time::ptime timestamp, const std::string &message, const std::string &source = std::string()); + void log(MessageCategory category, MessageLevel level, boost::posix_time::ptime timestamp, const Core::String &message, const Core::String &source = Core::String()); void registerLogger(boost::shared_ptr<Logger> logger) { boost::lock_guard<boost::mutex> lock(loggerMutex); |