GEOS
Namespaces | Macros | Functions | Variables
LogLevelsInfo.hpp File Reference
#include "common/DataTypes.hpp"
#include "common/format/Format.hpp"

Go to the source code of this file.

Namespaces

 geos
 

Macros

#define GEOS_LOG_LEVEL_INFO(logInfoStruct, msg)   GEOS_LOG_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
 Output messages based on current Group's log level. More...
 
#define GEOS_LOG_LEVEL_INFO_RANK_0(logInfoStruct, msg)   GEOS_LOG_RANK_0_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
 Output messages (only on rank 0) based on current Group's log level. More...
 
#define GEOS_LOG_LEVEL_INFO_BY_RANK(logInfoStruct, msg)   GEOS_LOG_RANK_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
 Output messages (with one line per rank) based on current Group's log level. More...
 
#define GEOS_LOG_LEVEL_INFO_RANK_0_NLR(logInfoStruct, msg)   GEOS_LOG_RANK_0_IF_NLR( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
 Output messages (only on rank 0) based on current Group's log level without the line return. More...
 

Functions

template<typename LOG_LEVEL_INFO >
std::enable_if_t< is_log_level_info< LOG_LEVEL_INFO >, bool > geos::isLogLevelActive (integer level)
 Verify if a log level is active. More...
 

Variables

template<typename LOG_LEVEL_INFO >
static constexpr bool geos::is_log_level_info
 Trait used to check whether a LOG_LEVEL_INFO structure is valid. More...
 

Detailed Description

This file contains log level information infrastructure and the mecanism to ensure LOG_LEVEL_INFO structure is valid

Definition in file LogLevelsInfo.hpp.

Macro Definition Documentation

◆ GEOS_LOG_LEVEL_INFO

#define GEOS_LOG_LEVEL_INFO (   logInfoStruct,
  msg 
)    GEOS_LOG_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );

Output messages based on current Group's log level.

ThOSE 3 macros would replace the ones in Logger.hpp

Parameters
[in]logInfoStructStrut containing log level desscription
[in]msga message to log (any expression that can be stream inserted)

Definition at line 65 of file LogLevelsInfo.hpp.

◆ GEOS_LOG_LEVEL_INFO_BY_RANK

#define GEOS_LOG_LEVEL_INFO_BY_RANK (   logInfoStruct,
  msg 
)    GEOS_LOG_RANK_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );

Output messages (with one line per rank) based on current Group's log level.

Parameters
[in]logInfoStructStrut containing log level desscription
[in]msga message to log (any expression that can be stream inserted)

Definition at line 79 of file LogLevelsInfo.hpp.

◆ GEOS_LOG_LEVEL_INFO_RANK_0

#define GEOS_LOG_LEVEL_INFO_RANK_0 (   logInfoStruct,
  msg 
)    GEOS_LOG_RANK_0_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );

Output messages (only on rank 0) based on current Group's log level.

Parameters
[in]logInfoStructStrut containing log level desscription
[in]msga message to log (any expression that can be stream inserted)

Definition at line 72 of file LogLevelsInfo.hpp.

◆ GEOS_LOG_LEVEL_INFO_RANK_0_NLR

#define GEOS_LOG_LEVEL_INFO_RANK_0_NLR (   logInfoStruct,
  msg 
)    GEOS_LOG_RANK_0_IF_NLR( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );

Output messages (only on rank 0) based on current Group's log level without the line return.

Parameters
[in]logInfoStructStrut containing log level desscription
[in]msga message to log (any expression that can be stream inserted)

Definition at line 86 of file LogLevelsInfo.hpp.