|
ifw-ccf
1.0.0
|
Class used to generate TRACE logs. More...
#include <base.hpp>
Public Member Functions | |
| CCF_TRACE_CLASS (const std::string &location, const std::string &scope="") | |
| ~CCF_TRACE_CLASS () | |
| Destructor generating the scope exit trace log. More... | |
Static Public Attributes | |
| static int8_t | s_nesting_level = -2 |
| static std::string | s_padding_chars |
Class used to generate TRACE logs.
The trace class is used to automatically log a scope entry and exit trace log. When entering the scope, an enter log is generated in the constructor. When exiting the scope, the trace class destructor generated a scope leaving log, including the time spent in the scope.
|
inline |
Constructor registering the location and optional scope description (user defined). It generate the scope entering log entry.
|
inline |
Destructor generating the scope exit trace log.
|
static |
|
static |