Skip to content

Commit

Permalink
Merge pull request #711 from Pressio/fix_macros_for_logger
Browse files Browse the repository at this point in the history
fix macros for logger
  • Loading branch information
fnrizzi authored Nov 14, 2024
2 parents 5eeb74b + 8f17251 commit fb403de
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions include/pressio/utils/logger/utils_logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,29 +104,12 @@ void setVerbosity(std::initializer_list<::pressio::log::level> levels)

#if !defined(PRESSIO_ENABLE_INTERNAL_SPDLOG)

#if PRESSIO_LOG_ACTIVE_MIN_LEVEL <= PRESSIO_LOG_LEVEL_TRACE
#define PRESSIOLOG_TRACE(...) (void)0
#endif

#if PRESSIO_LOG_ACTIVE_MIN_LEVEL <= PRESSIO_LOG_LEVEL_DEBUG
#define PRESSIOLOG_DEBUG(...) (void)0
#endif

#if PRESSIO_LOG_ACTIVE_MIN_LEVEL <= PRESSIO_LOG_LEVEL_INFO
#define PRESSIOLOG_INFO(...) (void)0
#endif

#if PRESSIO_LOG_ACTIVE_MIN_LEVEL <= PRESSIO_LOG_LEVEL_WARN
#define PRESSIOLOG_WARN(...) (void)0
#endif

#if PRESSIO_LOG_ACTIVE_MIN_LEVEL <= PRESSIO_LOG_LEVEL_ERROR
#define PRESSIOLOG_ERROR(...) (void)0
#endif

#if PRESSIO_LOG_ACTIVE_MIN_LEVEL <= PRESSIO_LOG_LEVEL_CRITICAL
#define PRESSIOLOG_CRITICAL(...) (void)0
#endif

#else // defined(PRESSIO_ENABLE_INTERNAL_SPDLOG)

Expand Down

0 comments on commit fb403de

Please sign in to comment.