Logging.h File Reference

Detailed Description

#include "waLBerlaDefinitions.h"
#include "core/DataTypes.h"
#include "core/logging/CMakeDefs.h"
#include "core/mpi/MPIManager.h"
#include "core/singleton/Singleton.h"
#include "core/timing/WcPolicy.h"
#include "core/Regex.h"
#include "core/StringUtility.h"
#include <functional>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

Classes

class  walberla::logging::Logging
 
class  walberla::logging::Logging::CustomStamp
 
class  walberla::logging::internal::LoggingMacroDispatcher
 

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 
 walberla::logging
 
 walberla::logging::internal
 

Macros

#define WALBERLA_LOG_DEVEL_SECTION()   if( walberla::logging::Logging::instance()->logDevel ( __FILE__, __LINE__ ) )
 
#define WALBERLA_LOG_DEVEL_ON_ROOT_SECTION()   if( walberla::logging::Logging::instance()->onRoot() && walberla::logging::Logging::instance()->logDevel ( __FILE__, __LINE__ ) )
 
#define WALBERLA_LOG_RESULT_SECTION()   if( walberla::logging::Logging::instance()->logResult ( __FILE__, __LINE__ ) )
 
#define WALBERLA_LOG_RESULT_ON_ROOT_SECTION()   if( walberla::logging::Logging::instance()->onRoot() && walberla::logging::Logging::instance()->logResult ( __FILE__, __LINE__ ) )
 
#define WALBERLA_LOG_WARNING_SECTION()   if( walberla::logging::Logging::instance()->logWarning ( __FILE__, __LINE__ ) )
 
#define WALBERLA_LOG_WARNING_ON_ROOT_SECTION()   if( walberla::logging::Logging::instance()->onRoot() && walberla::logging::Logging::instance()->logWarning ( __FILE__, __LINE__ ) )
 
#define WALBERLA_LOG_INFO_SECTION()   if( false )
 
#define WALBERLA_LOG_INFO_ON_ROOT_SECTION()   if( false )
 
#define WALBERLA_LOG_PROGRESS_SECTION()   if( false )
 
#define WALBERLA_LOG_PROGRESS_ON_ROOT_SECTION()   if( false )
 
#define WALBERLA_LOG_DETAIL_SECTION()   if( false )
 
#define WALBERLA_LOG_DETAIL_ON_ROOT_SECTION()   if( false )
 
#define WALBERLA_LOG_DEVEL(msg)
 
#define WALBERLA_LOG_DEVEL_ON_ROOT(msg)
 
#define WALBERLA_LOG_DEVEL_VAR(variable)
 
#define WALBERLA_LOG_DEVEL_VAR_ON_ROOT(variable)
 
#define WALBERLA_LOG_RESULT(msg)
 
#define WALBERLA_LOG_RESULT_ON_ROOT(msg)
 
#define WALBERLA_LOG_WARNING(msg)
 
#define WALBERLA_LOG_WARNING_ON_ROOT(msg)
 
#define WALBERLA_LOG_INFO(msg)   (void(0));
 
#define WALBERLA_LOG_INFO_ON_ROOT(msg)   (void(0));
 
#define WALBERLA_LOG_PROGRESS(msg)   (void(0));
 
#define WALBERLA_LOG_PROGRESS_ON_ROOT(msg)   (void(0));
 
#define WALBERLA_LOG_DETAIL(msg)   (void(0));
 
#define WALBERLA_LOG_DETAIL_ON_ROOT(msg)   (void(0));
 

Macro Definition Documentation

◆ WALBERLA_LOG_DETAIL

#define WALBERLA_LOG_DETAIL (   msg)    (void(0));

◆ WALBERLA_LOG_DETAIL_ON_ROOT

#define WALBERLA_LOG_DETAIL_ON_ROOT (   msg)    (void(0));

◆ WALBERLA_LOG_DETAIL_ON_ROOT_SECTION

#define WALBERLA_LOG_DETAIL_ON_ROOT_SECTION ( )    if( false )

◆ WALBERLA_LOG_DETAIL_SECTION

#define WALBERLA_LOG_DETAIL_SECTION ( )    if( false )

◆ WALBERLA_LOG_DEVEL

#define WALBERLA_LOG_DEVEL (   msg)
Value:
{\
WALBERLA_LOG_DEVEL_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << msg;\
walberla::logging::internal::LoggingMacroDispatcher::logDevel( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}\
}

◆ WALBERLA_LOG_DEVEL_ON_ROOT

#define WALBERLA_LOG_DEVEL_ON_ROOT (   msg)
Value:
{\
if( walberla::logging::Logging::instance()->onRoot() ){\
WALBERLA_LOG_DEVEL_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << msg;\
walberla::logging::internal::LoggingMacroDispatcher::logDevel( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}}\
}

◆ WALBERLA_LOG_DEVEL_ON_ROOT_SECTION

#define WALBERLA_LOG_DEVEL_ON_ROOT_SECTION ( )    if( walberla::logging::Logging::instance()->onRoot() && walberla::logging::Logging::instance()->logDevel ( __FILE__, __LINE__ ) )

◆ WALBERLA_LOG_DEVEL_SECTION

#define WALBERLA_LOG_DEVEL_SECTION ( )    if( walberla::logging::Logging::instance()->logDevel ( __FILE__, __LINE__ ) )

◆ WALBERLA_LOG_DEVEL_VAR

#define WALBERLA_LOG_DEVEL_VAR (   variable)
Value:
{\
WALBERLA_LOG_DEVEL_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << #variable " = " << variable;\
walberla::logging::internal::LoggingMacroDispatcher::logDevel( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}\
}

◆ WALBERLA_LOG_DEVEL_VAR_ON_ROOT

#define WALBERLA_LOG_DEVEL_VAR_ON_ROOT (   variable)
Value:
{\
if( walberla::logging::Logging::instance()->onRoot() ){\
WALBERLA_LOG_DEVEL_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << #variable " = " << variable;\
walberla::logging::internal::LoggingMacroDispatcher::logDevel( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}}\
}

◆ WALBERLA_LOG_INFO

#define WALBERLA_LOG_INFO (   msg)    (void(0));

◆ WALBERLA_LOG_INFO_ON_ROOT

#define WALBERLA_LOG_INFO_ON_ROOT (   msg)    (void(0));

◆ WALBERLA_LOG_INFO_ON_ROOT_SECTION

#define WALBERLA_LOG_INFO_ON_ROOT_SECTION ( )    if( false )

◆ WALBERLA_LOG_INFO_SECTION

#define WALBERLA_LOG_INFO_SECTION ( )    if( false )

◆ WALBERLA_LOG_PROGRESS

#define WALBERLA_LOG_PROGRESS (   msg)    (void(0));

◆ WALBERLA_LOG_PROGRESS_ON_ROOT

#define WALBERLA_LOG_PROGRESS_ON_ROOT (   msg)    (void(0));

◆ WALBERLA_LOG_PROGRESS_ON_ROOT_SECTION

#define WALBERLA_LOG_PROGRESS_ON_ROOT_SECTION ( )    if( false )

◆ WALBERLA_LOG_PROGRESS_SECTION

#define WALBERLA_LOG_PROGRESS_SECTION ( )    if( false )

◆ WALBERLA_LOG_RESULT

#define WALBERLA_LOG_RESULT (   msg)
Value:
{\
WALBERLA_LOG_RESULT_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << msg;\
walberla::logging::internal::LoggingMacroDispatcher::logResult( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}\
}

◆ WALBERLA_LOG_RESULT_ON_ROOT

#define WALBERLA_LOG_RESULT_ON_ROOT (   msg)
Value:
{\
if( walberla::logging::Logging::instance()->onRoot() ){\
WALBERLA_LOG_RESULT_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << msg;\
walberla::logging::internal::LoggingMacroDispatcher::logResult( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}}\
}

◆ WALBERLA_LOG_RESULT_ON_ROOT_SECTION

#define WALBERLA_LOG_RESULT_ON_ROOT_SECTION ( )    if( walberla::logging::Logging::instance()->onRoot() && walberla::logging::Logging::instance()->logResult ( __FILE__, __LINE__ ) )

◆ WALBERLA_LOG_RESULT_SECTION

#define WALBERLA_LOG_RESULT_SECTION ( )    if( walberla::logging::Logging::instance()->logResult ( __FILE__, __LINE__ ) )

◆ WALBERLA_LOG_WARNING

#define WALBERLA_LOG_WARNING (   msg)
Value:
{\
WALBERLA_LOG_WARNING_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << msg;\
walberla::logging::internal::LoggingMacroDispatcher::logWarning( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}\
}

◆ WALBERLA_LOG_WARNING_ON_ROOT

#define WALBERLA_LOG_WARNING_ON_ROOT (   msg)
Value:
{\
if( walberla::logging::Logging::instance()->onRoot() ){\
WALBERLA_LOG_WARNING_SECTION(){\
std::stringstream WALBERLA__LOGGING__OSS;\
WALBERLA__LOGGING__OSS << msg;\
walberla::logging::internal::LoggingMacroDispatcher::logWarning( WALBERLA__LOGGING__OSS.str(), __FILE__, __LINE__ );\
}}\
}

◆ WALBERLA_LOG_WARNING_ON_ROOT_SECTION

#define WALBERLA_LOG_WARNING_ON_ROOT_SECTION ( )    if( walberla::logging::Logging::instance()->onRoot() && walberla::logging::Logging::instance()->logWarning ( __FILE__, __LINE__ ) )

◆ WALBERLA_LOG_WARNING_SECTION

#define WALBERLA_LOG_WARNING_SECTION ( )    if( walberla::logging::Logging::instance()->logWarning ( __FILE__, __LINE__ ) )
static void logResult(const std::string &message, const std::string &callerPath, const int line)
Definition: Logging.h:539
static void logDevel(const std::string &message, const std::string &callerPath, const int line)
Definition: Logging.h:535
static void logWarning(const std::string &message, const std::string &callerPath, const int line)
Definition: Logging.h:543