Diagnostic infrastructure.
More...
#include <Diagnostics.h>
|
| Diagnostics (const FrameworkDiagnostics &frameworkDiagnostics, const UserDiagnosticsCollection &userDiagnosticsCollection) |
| Constructor. More...
|
|
| ~Diagnostics () |
| Destructor.
|
|
const
DiagnosticsDefs::DiagnosticTopics & | getTopics (DiagnosticsDefs::Side::Side side, const std::string &fesaClassName="") const |
| Get diagnostic topics. More...
|
|
void | log (const std::string &topic, DiagnosticsDefs::DiagnosticMessage &diagMsg, const boost::optional< AbstractDevice * > &device=boost::none) |
| Log a diagnostic message. More...
|
|
void | enable (DiagnosticsDefs::Side::Side side, const std::string &topic, const std::string &fesaClassName="") const |
| Enable logging for the given topic. More...
|
|
void | disable (DiagnosticsDefs::Side::Side side, const std::string &topic, const std::string &fesaClassName="") const |
| Disable logging for the given topic. More...
|
|
Diagnostic infrastructure.
fesa::Diagnostics::Diagnostics |
( |
const FrameworkDiagnostics & |
frameworkDiagnostics, |
|
|
const UserDiagnosticsCollection & |
userDiagnosticsCollection |
|
) |
| |
Constructor.
- Parameters
-
[in] | frameworkDiagnostics | Diagnostics done on the framework side |
[in] | frameworkDiagnostics | Diagnostics done on the user side |
void fesa::Diagnostics::disable |
( |
DiagnosticsDefs::Side::Side |
side, |
|
|
const std::string & |
topic, |
|
|
const std::string & |
fesaClassName = "" |
|
) |
| const |
Disable logging for the given topic.
- Parameters
-
[in] | side | The side on which diagnostics are performed, framework or user |
[in] | topic | The diagnostic topic to disable logging for |
[in] | fesaClassName | The name of the FESA class on which diagnostics are performed. This parameter is meaningful only for the user side diagnostics |
void fesa::Diagnostics::enable |
( |
DiagnosticsDefs::Side::Side |
side, |
|
|
const std::string & |
topic, |
|
|
const std::string & |
fesaClassName = "" |
|
) |
| const |
Enable logging for the given topic.
- Parameters
-
[in] | side | The side on which diagnostics are performed, framework or user |
[in] | topic | The diagnostic topic to enable logging for |
[in] | fesaClassName | The name of the FESA class on which diagnostics are performed. This parameter is meaningful only for the user side diagnostics |
const DiagnosticsDefs::DiagnosticTopics & fesa::Diagnostics::getTopics |
( |
DiagnosticsDefs::Side::Side |
side, |
|
|
const std::string & |
fesaClassName = "" |
|
) |
| const |
Get diagnostic topics.
- Parameters
-
[in] | side | The side on which diagnostics are performed, framework or user |
[in] | fesaClassName | The name of the FESA class on which diagnostics are performed. This parameter is meaningful only for the user side diagnostics |
- Returns
- List of diagnostic topics for the given side
Log a diagnostic message.
- Parameters
-
[in] | topic | The diagnostic topic which the diagnostic message is concerned with |
[in] | diagMsg | The diagnostic message to log |
The documentation for this class was generated from the following files:
- Diagnostics.h
- Diagnostics.cpp