VISH  0.2
Public Member Functions
Wizt::VLogger::Context Struct Reference

Set logging context with auto-cleanup. More...

#include </home/werner/origo/vish/ocean/plankton/VLogger.hpp>

List of all members.

Public Member Functions


Detailed Description

Set logging context with auto-cleanup.

A context can be a function entry, or a loop, or a brace, practically any kind of local lifetime of an object. The context is specified via creation of a temporary variable, the specified string is arbitrary (user-defined):

           void f()
           {
           VLogger::Context tmp("void f()");
           }
Note:
The behaviour of non-automatic Context variables is undefined. Variables which are static or allocated by new will conflict with the concept of a function call stack and will confuse the logging facility. Don't do this.

Constructor & Destructor Documentation

Wizt::VLogger::Context::Context ( const char *  s) [inline]

Open a context for logging.

The destructor of this object will automatically close the context.


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