VISH  0.2
Public Member Functions
Wizt::VLogger::Indent Class Reference

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>

List of all members.

Public Member Functions


Detailed Description

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");
           }
Note:
Only create automatic variables of this class type, dynamic or static variables will not work and just confuse the logging stack,

Constructor & Destructor Documentation

Wizt::VLogger::Indent::Indent ( int  i) [inline]

Open a context for logging.

The destructor of this object will automatically close the context.


The documentation for this class was generated from the following file: