Framework side diagnostic infrastructure. More...
#include <FrameworkDiagnostics.h>
Public Member Functions | |
FrameworkDiagnostics () | |
Constructor. | |
~FrameworkDiagnostics () | |
Destructor. | |
const DiagnosticUtils::DiagnosticTopics & | getTopics () const |
Get diagnostic topics. | |
void | log (const std::string &topic, DiagnosticUtils::DiagnosticMessage &diagMsg) |
Log a diagnostic message. | |
void | enable (const std::string &topic) const |
Enable logging for the given topic. | |
void | disable (const std::string &topic) const |
Disable logging for the given topic. | |
Private Member Functions | |
FrameworkDiagnostics & | operator= (const FrameworkDiagnostics &diagnostics) |
Private Attributes | |
DiagnosticUtils::DiagnosticTopics | topics_ |
std::map< std::string, int64_t > | messageCounters_ |
Framework side diagnostic infrastructure.
Definition at line 16 of file FrameworkDiagnostics.h.
fesa::FrameworkDiagnostics::FrameworkDiagnostics | ( | ) |
Constructor.
Definition at line 19 of file FrameworkDiagnostics.cpp.
References fesa::DiagnosticUtils::eventProfilingStr, fesa::DiagnosticUtils::eventTrackingStr, fesa::DiagnosticUtils::getActionProfilingStr, fesa::DiagnosticUtils::getActionTrackingStr, fesa::DiagnosticUtils::notificationProfilingStr, fesa::DiagnosticUtils::notificationTrackingStr, fesa::DiagnosticUtils::persistencyTrackingStr, fesa::DiagnosticUtils::rdaTrackingStr, fesa::DiagnosticUtils::rtActionProfilingStr, fesa::DiagnosticUtils::rtActionTrackingStr, fesa::DiagnosticUtils::setActionProfilingStr, fesa::DiagnosticUtils::setActionTrackingStr, fesa::DiagnosticUtils::signalHandlerTrackingStr, fesa::DiagnosticUtils::startUpTrackingStr, fesa::DiagnosticUtils::subscriptionTrackingStr, topics_, and fesa::DiagnosticUtils::transactionTrackingStr.
fesa::FrameworkDiagnostics::~FrameworkDiagnostics | ( | ) |
Destructor.
Definition at line 41 of file FrameworkDiagnostics.cpp.
void fesa::FrameworkDiagnostics::disable | ( | const std::string & | topic | ) | const |
Disable logging for the given topic.
[in] | topic | The diagnostic topic to disable logging for |
Definition at line 75 of file FrameworkDiagnostics.cpp.
References fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix.
Referenced by fesa::Diagnostics::disable().
void fesa::FrameworkDiagnostics::enable | ( | const std::string & | topic | ) | const |
Enable logging for the given topic.
[in] | topic | The diagnostic topic to enable logging for |
Definition at line 67 of file FrameworkDiagnostics.cpp.
References fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix.
Referenced by fesa::Diagnostics::enable().
const DiagnosticUtils::DiagnosticTopics & fesa::FrameworkDiagnostics::getTopics | ( | ) | const |
Get diagnostic topics.
Definition at line 47 of file FrameworkDiagnostics.cpp.
References topics_.
Referenced by fesa::Diagnostics::getTopics().
void fesa::FrameworkDiagnostics::log | ( | const std::string & | topic, | |
DiagnosticUtils::DiagnosticMessage & | diagMsg | |||
) |
Log a diagnostic message.
[in] | topic | The diagnostic topic which the diagnostic message is concerned with |
[in] | diagnosticMessage | The diagnostic message to log |
Definition at line 54 of file FrameworkDiagnostics.cpp.
References fesa::DiagnosticUtils::DiagnosticMessage::count, fesa::DiagnosticUtils::formatMessage(), fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix, and messageCounters_.
Referenced by fesa::Diagnostics::log().
FrameworkDiagnostics& fesa::FrameworkDiagnostics::operator= | ( | const FrameworkDiagnostics & | diagnostics | ) | [private] |
std::map<std::string, int64_t> fesa::FrameworkDiagnostics::messageCounters_ [private] |
Definition at line 52 of file FrameworkDiagnostics.h.
Referenced by log().
Definition at line 51 of file FrameworkDiagnostics.h.
Referenced by FrameworkDiagnostics(), and getTopics().