diff options
Diffstat (limited to 'log_manager.hpp')
-rw-r--r-- | log_manager.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/log_manager.hpp b/log_manager.hpp index b165ff3..9339a6f 100644 --- a/log_manager.hpp +++ b/log_manager.hpp @@ -68,6 +68,19 @@ class Manager : public details::ServerObject<details::ManagerIface> */ void commit(uint64_t transactionId, std::string errMsg) override; + /* + * @fn commit() + * @brief sd_bus CommitWithLvl method implementation callback. + * @details Create an error/event log based on transaction id and + * error message. + * @param[in] transactionId - Unique identifier of the journal entries + * to be committed. + * @param[in] errMsg - The error exception message associated with the + * error log to be committed. + * @param[in] errLvl - level of the error + */ + void commitWithLvl(uint64_t transactionId, std::string errMsg, + uint32_t errLvl) override; /** @brief Erase specified entry d-bus object * @@ -95,6 +108,18 @@ class Manager : public details::ServerObject<details::ManagerIface> } private: + /* + * @fn _commit() + * @brief commit() helper + * @param[in] transactionId - Unique identifier of the journal entries + * to be committed. + * @param[in] errMsg - The error exception message associated with the + * error log to be committed. + * @param[in] errLvl - level of the error + */ + void _commit(uint64_t transactionId, std::string&& errMsg, + Entry::Level errLvl); + /** @brief Call metadata handler(s), if any. Handlers may create * associations. * @param[in] errorName - name of the error |