19 #ifndef GEOS_COMMON_LOGLEVELSINFO_HPP
20 #define GEOS_COMMON_LOGLEVELSINFO_HPP
23 #include "common/format/Format.hpp"
39 template<
typename LOG_LEVEL_INFO >
41 std::is_same_v<
integer, decltype(LOG_LEVEL_INFO::getMinLogLevel()) > &&
42 std::is_same_v<
std::string_view, decltype(LOG_LEVEL_INFO::getDescription()) >;
52 template<
typename LOG_LEVEL_INFO >
53 std::enable_if_t< is_log_level_info< LOG_LEVEL_INFO >,
bool >
56 return level >= LOG_LEVEL_INFO::getMinLogLevel();
65 #define GEOS_LOG_LEVEL_INFO( logInfoStruct, msg ) GEOS_LOG_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
72 #define GEOS_LOG_LEVEL_INFO_RANK_0( logInfoStruct, msg ) GEOS_LOG_RANK_0_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
79 #define GEOS_LOG_LEVEL_INFO_BY_RANK( logInfoStruct, msg ) GEOS_LOG_RANK_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
86 #define GEOS_LOG_LEVEL_INFO_RANK_0_NLR( logInfoStruct, msg ) GEOS_LOG_RANK_0_IF_NLR( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
std::int32_t integer
Signed integer type.
std::enable_if_t< is_log_level_info< LOG_LEVEL_INFO >, bool > isLogLevelActive(integer level)
Verify if a log level is active.
static constexpr bool is_log_level_info
Trait used to check whether a LOG_LEVEL_INFO structure is valid.
std::string_view string_view
String type.