walberla::logging::Tracer Class Reference

Detailed Description

Tracer printing a log message upon creation and destruction.

This class is intended to be used via the WALBERLA_TRACE_IN macro. Place "WALBERLA_TRACE_IN;" at the beginning of a function to have a log message printed when control flow enters the function and another one when it leaves the function's scope. Note that messages are printed only if "WALBERLA_LOGLEVEL" is set to "TRACING" in CMake cache and the runtime log level of Logging is set to TRACING!

#include <Tracing.h>

Public Member Functions

 Tracer (const std::string &functionName, const std::string &fileName, int lineNumber)
 
 ~Tracer ()
 

Private Attributes

std::string functionName_
 
std::string fileName_
 
int lineNumber_
 

Constructor & Destructor Documentation

walberla::logging::Tracer::Tracer ( const std::string &  functionName,
const std::string &  fileName,
int  lineNumber 
)
inline
walberla::logging::Tracer::~Tracer ( )
inline

Member Data Documentation

std::string walberla::logging::Tracer::fileName_
private
std::string walberla::logging::Tracer::functionName_
private
int walberla::logging::Tracer::lineNumber_
private

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