#include <AppFailuresLoggerManager.hpp>
|
| AppFailuresLoggerManager ()=default |
|
void | logCommFailure (const iv::types::networkId &networkId, std::string_view specificCommId, std::string_view failureDescription, iv::logs::eSystemFailureLogLevel level) |
|
void | logThreadFailure (const iv::types::threadName &threadName, std::string_view specificThreadId, std::string_view failureDescription, iv::logs::eSystemFailureLogLevel level) |
|
void | logAppFailure (iv::logs::eSystemFailureCategory category, std::string_view specificCommId, std::string_view failureSource, std::string_view failureDescription, iv::logs::eSystemFailureLogLevel level) |
|
bool | removeAppFailure (const iv::types::appFailureId &failureId) |
|
std::weak_ptr< iv::diamar::AppFailure > | getAppFailure (const iv::types::appFailureId &failureId) const |
|
iv::types::timestamp | lastTimestamp () const |
|
std::optional< iv::logs::eSystemFailureLogLevel > | criticalLevelSinceLastCheck (bool resetCriticalLevel=false) |
| Get the highest critical level since the last check.
|
|
void | resetCriticalLevelSinceLastCheck () |
| Reset the critical level since the last check.
|
|
std::map< iv::types::appFailureId, std::shared_ptr< iv::diamar::AppFailure > > | appFailures () const |
|
◆ AppFailuresLoggerManager()
iv::diamar::AppFailuresLoggerManager::AppFailuresLoggerManager |
( |
| ) |
|
|
default |
◆ addOrUpdateAppFailure()
◆ appFailures()
◆ criticalLevelSinceLastCheck()
Get the highest critical level since the last check.
- Parameters
-
resetCriticalLevel | If true, the critical level will be reset. |
- Returns
- The highest critical level since the last check.
◆ getAppFailure()
◆ lastTimestamp()
◆ logAppFailure()
◆ logCommFailure()
◆ logThreadFailure()
◆ removeAppFailure()
◆ resetCriticalLevelSinceLastCheck()
void iv::diamar::AppFailuresLoggerManager::resetCriticalLevelSinceLastCheck |
( |
| ) |
|
Reset the critical level since the last check.
◆ m_appFailures
◆ m_criticalLevelSinceLastCheck
◆ m_lastTimestamp
◆ m_mutex
std::mutex iv::diamar::AppFailuresLoggerManager::m_mutex |
|
mutableprivate |
The documentation for this class was generated from the following files: