From 831409807e0e818d9eb99501ee4c58437bedd0ea Mon Sep 17 00:00:00 2001 From: ramonn Date: Thu, 21 Feb 2013 10:18:13 +0000 Subject: [PATCH] 2013-02-21 Ramon Novoa * modules/pandora_module_logevent.cc: Add the timestamp to the log. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7694 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 4 ++++ pandora_agents/win32/modules/pandora_module_logevent.cc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 1e08a5f3f1..e38fde1f82 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,7 @@ +2013-02-21 Ramon Novoa + + * modules/pandora_module_logevent.cc: Add the timestamp to the log. + 2013-02-20 Ramon Novoa * modules/pandora_module_logevent.cc: Retrieve extra event information diff --git a/pandora_agents/win32/modules/pandora_module_logevent.cc b/pandora_agents/win32/modules/pandora_module_logevent.cc index b5157a56b9..ef049faabe 100755 --- a/pandora_agents/win32/modules/pandora_module_logevent.cc +++ b/pandora_agents/win32/modules/pandora_module_logevent.cc @@ -266,6 +266,11 @@ Pandora_Module_Logevent::getLogEvents (list &event_list, unsigned char d // Print additional information for log modules if (this->getModuleType() == TYPE_LOG) { + + // Add the timestamp to the log (the previous timestamp will be stripped) + event << "[Timestamp: "; + event << timestamp; + event << "]"; // Retrieve the event id event << "[ID: ";