20 #ifndef GEOS_COMMON_LOGLEVELSINFO_HPP
21 #define GEOS_COMMON_LOGLEVELSINFO_HPP
24 #include "common/format/Format.hpp"
40 template<
typename LOG_LEVEL_INFO >
42 std::is_same_v<
integer, decltype(LOG_LEVEL_INFO::getMinLogLevel()) > &&
43 std::is_same_v<
std::string_view, decltype(LOG_LEVEL_INFO::getDescription()) >;
53 template<
typename LOG_LEVEL_INFO >
54 std::enable_if_t< is_log_level_info< LOG_LEVEL_INFO >,
bool >
57 return level >= LOG_LEVEL_INFO::getMinLogLevel();
66 #define GEOS_LOG_LEVEL_INFO( logInfoStruct, msg ) GEOS_LOG_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
73 #define GEOS_LOG_LEVEL_INFO_RANK_0( logInfoStruct, msg ) GEOS_LOG_RANK_0_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
80 #define GEOS_LOG_LEVEL_INFO_BY_RANK( logInfoStruct, msg ) GEOS_LOG_RANK_IF( isLogLevelActive< logInfoStruct >( this->getLogLevel() ), msg );
87 #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.