A telemetry module or artifact. More...
#include <cvb/telemetry/module.hpp>
Public Member Functions | |
bool | WouldTrace () const noexcept |
Get if traces are active. | |
bool | WouldLog () const noexcept |
Get if logs are active. | |
bool | WouldLogDebug () const noexcept |
Get if debug logs are active. | |
bool | WouldLogInfo () const noexcept |
Get if info logs are active. | |
bool | WouldLogWarning () const noexcept |
Get if warning logs are active. | |
bool | WouldLogError () const noexcept |
Get if error logs are active. | |
bool | WouldLogFatal () const noexcept |
Get if fatal logs are active. | |
Static Public Member Functions | |
static Module & | Get () |
Get the module singleton. | |
A telemetry module or artifact.
A module represents a instrumented entity that has a dedicated configuration for telemetry. Usually a DLL or shared object or executable. Users must define a singleton instance for their module by using the CVB_TELEMETRY_MODULE macro in a source file. Be aware that multiple module instances may conflict within the same process. The macro takes care of this by using inline namespaces.
|
static |
Get the module singleton.
only | if allocation fails |
The module contains the instrumentation configuration as setup.
|
inlinenoexcept |
Get if logs are active.
Does | not throw any exception. |
|
inlinenoexcept |
Get if debug logs are active.
Does | not throw any exception. |
|
inlinenoexcept |
Get if error logs are active.
Does | not throw any exception. |
|
inlinenoexcept |
Get if fatal logs are active.
Does | not throw any exception. |
|
inlinenoexcept |
Get if info logs are active.
Does | not throw any exception. |
|
inlinenoexcept |
Get if warning logs are active.
Does | not throw any exception. |
|
inlinenoexcept |
Get if traces are active.
Does | not throw any exception. |