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

◆ Tracer()

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

◆ ~Tracer()

walberla::logging::Tracer::~Tracer ( )
inline

Member Data Documentation

◆ fileName_

std::string walberla::logging::Tracer::fileName_
private

◆ functionName_

std::string walberla::logging::Tracer::functionName_
private

◆ lineNumber_

int walberla::logging::Tracer::lineNumber_
private

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