|
The Vish Visualization Shell 0.3
Vish
|
Set logging context with auto-cleanup. More...
#include <ocean/plankton/VLogger.hpp>
Public Member Functions | |
| Context (const char *s) | |
| Open a context for logging. | |
| ~Context () | |
| Destructor closes the current context for logging and sets the context to the previous one. | |
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):
|
inline |
Open a context for logging.
The destructor of this object will automatically close the context.