summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Backends
diff options
context:
space:
mode:
Diffstat (limited to 'src/Daemon/Backends')
-rw-r--r--src/Daemon/Backends/NetworkLogger.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Daemon/Backends/NetworkLogger.h b/src/Daemon/Backends/NetworkLogger.h
index c0b123a..557cc14 100644
--- a/src/Daemon/Backends/NetworkLogger.h
+++ b/src/Daemon/Backends/NetworkLogger.h
@@ -20,7 +20,6 @@
#ifndef MAD_DAEMON_BACKENDS_NETWORKLOGGER_H_
#define MAD_DAEMON_BACKENDS_NETWORKLOGGER_H_
-#include <Core/Logger.h>
#include <Common/RequestManager.h>
#include <Daemon/Requests/LogRequest.h>
@@ -30,16 +29,17 @@ namespace Backends {
class NetworkLogger : public Core::Logger {
private:
+ Common::Application *application;
Common::Connection *connection;
protected:
virtual void logMessage(Core::Logger::MessageCategory category, Core::Logger::MessageLevel level, time_t messageTimestamp, const std::string &message) {
- boost::shared_ptr<Requests::LogRequest> request(new Requests::LogRequest(category, level, messageTimestamp, message));
- Common::RequestManager::get()->sendRequest(connection, request);
+ boost::shared_ptr<Requests::LogRequest> request(new Requests::LogRequest(application, category, level, messageTimestamp, message));
+ application->getRequestManager()->sendRequest(connection, request);
}
public:
- NetworkLogger(Common::Connection *connection0) : connection(connection0) {}
+ NetworkLogger(Common::Application *application0, Common::Connection *connection0) : application(application0), connection(connection0) {}
};
}