diff options
Diffstat (limited to 'src/Daemon/Requests')
-rw-r--r-- | src/Daemon/Requests/LogRequest.cpp | 1 | ||||
-rw-r--r-- | src/Daemon/Requests/LogRequest.h | 11 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/Daemon/Requests/LogRequest.cpp b/src/Daemon/Requests/LogRequest.cpp index 2d12fc8..9266420 100644 --- a/src/Daemon/Requests/LogRequest.cpp +++ b/src/Daemon/Requests/LogRequest.cpp @@ -34,6 +34,7 @@ void LogRequest::sendRequest() { packet.set("level", level); packet.set("timestamp", boost::posix_time::to_iso_string(messageTimestamp)); packet.set("message", message); + packet.set("source", source); sendPacket(packet); } diff --git a/src/Daemon/Requests/LogRequest.h b/src/Daemon/Requests/LogRequest.h index 49d5c6f..2d8c91f 100644 --- a/src/Daemon/Requests/LogRequest.h +++ b/src/Daemon/Requests/LogRequest.h @@ -31,17 +31,18 @@ namespace Requests { class MAD_DAEMON_EXPORT LogRequest : public Common::Request { private: - Core::LoggerBase::MessageCategory category; - Core::LoggerBase::MessageLevel level; + Core::Logger::MessageCategory category; + Core::Logger::MessageLevel level; boost::posix_time::ptime messageTimestamp; - std::string message; + std::string message, source; protected: virtual void sendRequest(); public: - LogRequest(Common::Application *application, Core::LoggerBase::MessageCategory category0, Core::LoggerBase::MessageLevel level0, boost::posix_time::ptime messageTimestamp0, const std::string &message0) - : Common::Request(application), category(category0), level(level0), messageTimestamp(messageTimestamp0), message(message0) {} + LogRequest(Common::Application *application, Core::Logger::MessageCategory category0, Core::Logger::MessageLevel level0, boost::posix_time::ptime messageTimestamp0, const std::string &message0, + const std::string &source0) + : Common::Request(application), category(category0), level(level0), messageTimestamp(messageTimestamp0), message(message0), source(source0) {} }; } |