diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-17 22:18:09 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-17 22:18:09 +0200 |
commit | d84a3b91346038bf55d7111462dab42a0a26445d (patch) | |
tree | 1e9eca4eba2a8da8f616815e56385725310fe148 /src/Common/Backends | |
parent | cccc512e2565b7b96b765bfb873f0fb635bd23e1 (diff) | |
download | mad-d84a3b91346038bf55d7111462dab42a0a26445d.tar mad-d84a3b91346038bf55d7111462dab42a0a26445d.zip |
Logger f?r Log-Messages benutzen
Diffstat (limited to 'src/Common/Backends')
-rw-r--r-- | src/Common/Backends/ConsoleLogger.cpp | 2 | ||||
-rw-r--r-- | src/Common/Backends/ConsoleLogger.h | 2 | ||||
-rw-r--r-- | src/Common/Backends/FileLogger.cpp | 2 | ||||
-rw-r--r-- | src/Common/Backends/FileLogger.h | 2 | ||||
-rw-r--r-- | src/Common/Backends/SystemBackendProc.cpp | 2 |
5 files changed, 4 insertions, 6 deletions
diff --git a/src/Common/Backends/ConsoleLogger.cpp b/src/Common/Backends/ConsoleLogger.cpp index 180a009..4bfa93b 100644 --- a/src/Common/Backends/ConsoleLogger.cpp +++ b/src/Common/Backends/ConsoleLogger.cpp @@ -24,7 +24,7 @@ namespace Mad { namespace Common { namespace Backends { -void ConsoleLogger::logMessage(MessageLevel level, const std::string &message) { +void ConsoleLogger::logMessage(MessageLevel, const std::string &message) { std::cerr << message << std::endl; } diff --git a/src/Common/Backends/ConsoleLogger.h b/src/Common/Backends/ConsoleLogger.h index f55d7ba..72fc179 100644 --- a/src/Common/Backends/ConsoleLogger.h +++ b/src/Common/Backends/ConsoleLogger.h @@ -28,7 +28,7 @@ namespace Backends { class ConsoleLogger : public Logger { protected: - virtual void logMessage(MessageLevel level, const std::string &message); + virtual void logMessage(MessageLevel, const std::string &message); public: ConsoleLogger() {} diff --git a/src/Common/Backends/FileLogger.cpp b/src/Common/Backends/FileLogger.cpp index 079c08c..b0bd57b 100644 --- a/src/Common/Backends/FileLogger.cpp +++ b/src/Common/Backends/FileLogger.cpp @@ -23,7 +23,7 @@ namespace Mad { namespace Common { namespace Backends { -void FileLogger::logMessage(MessageLevel level, const std::string &message) { +void FileLogger::logMessage(MessageLevel, const std::string &message) { file << message << std::endl; } diff --git a/src/Common/Backends/FileLogger.h b/src/Common/Backends/FileLogger.h index 219a464..8a72bec 100644 --- a/src/Common/Backends/FileLogger.h +++ b/src/Common/Backends/FileLogger.h @@ -32,7 +32,7 @@ class FileLogger : public Logger { std::ofstream file; protected: - virtual void logMessage(MessageLevel level, const std::string &message); + virtual void logMessage(MessageLevel, const std::string &message); public: FileLogger(const std::string &filename) diff --git a/src/Common/Backends/SystemBackendProc.cpp b/src/Common/Backends/SystemBackendProc.cpp index 7e9fcbd..3a3f283 100644 --- a/src/Common/Backends/SystemBackendProc.cpp +++ b/src/Common/Backends/SystemBackendProc.cpp @@ -22,8 +22,6 @@ #include <fstream> #include <pcrecpp.h> -#include <iostream> - namespace Mad { namespace Common { namespace Backends { |