Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
BlockTracer.cpp
Go to the documentation of this file.
1 
7 #include "tracer/BlockTracer.h"
8 
9 namespace UA_CoMP {
10 namespace Misc {
11 
12 using namespace std;
13 
14 BlockTracer::BlockTracer(const string& msg) : m_msg(msg)
15 {
16  g_tracer_log.log("---> code block: " + m_msg);
18 }
19 
21 {
23  g_tracer_log.log("<--- code block: " + m_msg);
24 }
25 
26 } // namespace Misc
27 } // namespace UA_CoMP
TracerOutput g_tracer_log
TracerOutput instance connected to g3log default logger.
void decrease_indent()
Decrease the indentation level.
BlockTracer(const std::string &msg)
Constructor insert message in TrackerOutput about entering a block.
Definition: BlockTracer.cpp:14
void log(const std::string &msg)
Insert the message in the google log at given severity level.
~BlockTracer()
Destructor inserts message in TracerOutput about leaving a block.
Definition: BlockTracer.cpp:20
const std::string m_msg
Definition: BlockTracer.h:42
void increase_indent()
Increase the indentation level.
Header for the class BlockTracer.