VISH
0.2
|
A class for setting a temporary increment of the indentation of logging text; it allows to indent logged text automatically during the lifetime of the Indent object. More...
#include </home/werner/origo/vish/ocean/plankton/VLogger.hpp>
A class for setting a temporary increment of the indentation of logging text; it allows to indent logged text automatically during the lifetime of the Indent object.
Use code like this:
void f() { VLogger::print(10, "function call"); {VLogger::Indent Tmp(2); VLogger::print(10, "local block"); } VLogger::print(10, "local block ended"); }
Wizt::VLogger::Indent::Indent | ( | int | i | ) | [inline] |
Open a context for logging.
The destructor of this object will automatically close the context.