Loggers

Initialization of the logger

Header and preprocessor variable

In order to activate the logger you need to add the following lines:

#define ENABLE_RT_LOG

Initialize the output stream

It is possible to set the output stream of the messages inside a file:

of.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app);

Using the rt_logger

// Somewhere in your library
dgRTLOG() << "your message. Prefer to use \n than std::endl."

Here the output file is "/tmp/dg-LOGS.txt".

Specifying the file with FILE and the line inside the file by LINE are necessary for the STREAM messages. Indeed they are indexed using the two values. The default values "" and 0 for the counting are not well understood.



dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03