summaryrefslogtreecommitdiffstats
path: root/elog_entry.hpp
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-01-22 14:56:04 -0600
committerAdriana Kobylak <anoo@us.ibm.com>2017-02-15 11:05:41 -0600
commitc5f0bbd99a4a01435585da977bec82634e45cc4b (patch)
tree57683f68e88b87524f0bccfc055be0e2d8ae93ab /elog_entry.hpp
parent4ea7f312c508af64634a3e308b8641d39c581e37 (diff)
downloadphosphor-logging-c5f0bbd99a4a01435585da977bec82634e45cc4b.tar.gz
phosphor-logging-c5f0bbd99a4a01435585da977bec82634e45cc4b.zip
Populate Timestamp when error entry is committed
Populate the Entry Timestamp property which is described as the time when the error log entry is committed in milliseconds since 1970. Change-Id: Id47fb974cf8220975eef0cc226581d0603a798a9 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'elog_entry.hpp')
-rw-r--r--elog_entry.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/elog_entry.hpp b/elog_entry.hpp
index 92360cb..76e51cf 100644
--- a/elog_entry.hpp
+++ b/elog_entry.hpp
@@ -39,11 +39,16 @@ class Entry : public details::ServerObject<details::EntryIface>
* base class) until after the properties are set.
* @param[in] bus - Bus to attach to.
* @param[in] path - Path to attach at.
- * @param[in] properties - Desired Entry properties.
+ * @param[in] idErr - The error entry id.
+ * @param[in] timestampErr - The commit timestamp.
+ * @param[in] severityErr - The severity of the error.
+ * @param[in] msgErr - The message of the error.
+ * @param[in] additionalDataErr - The error metadata.
*/
Entry(sdbusplus::bus::bus& bus,
const std::string& path,
uint32_t idErr,
+ uint64_t timestampErr,
Level severityErr,
std::string&& msgErr,
std::vector<std::string>&& additionalDataErr) :
@@ -52,6 +57,7 @@ class Entry : public details::ServerObject<details::EntryIface>
{
id(idErr);
severity(severityErr);
+ timestamp(timestampErr);
message(std::move(msgErr));
additionalData(std::move(additionalDataErr));
OpenPOWER on IntegriCloud