3 #include "fmt/ostream.h" 4 #include "spdlog/spdlog.h" 20 spdlog::logger*
log();
24 #define DREAL_LOG_TRACE(...) \ 26 if (::dreal::log()->should_log(spdlog::level::trace)) { \ 27 ::dreal::log()->trace(__VA_ARGS__); \ 31 #define DREAL_LOG_DEBUG(...) \ 33 if (::dreal::log()->should_log(spdlog::level::debug)) { \ 34 ::dreal::log()->debug(__VA_ARGS__); \ 38 #define DREAL_LOG_INFO(...) \ 40 ::dreal::log()->info(__VA_ARGS__); \ 43 #define DREAL_LOG_WARN(...) \ 45 ::dreal::log()->warn(__VA_ARGS__); \ 48 #define DREAL_LOG_ERROR(...) \ 50 ::dreal::log()->error(__VA_ARGS__); \ 53 #define DREAL_LOG_CRITICAL(...) \ 55 ::dreal::log()->critical(__VA_ARGS__); \ 58 #define DREAL_LOG_TRACE_ENABLED \ 59 (::dreal::log()->should_log(spdlog::level::trace)) 60 #define DREAL_LOG_DEBUG_ENABLED \ 61 (::dreal::log()->should_log(spdlog::level::debug)) 62 #define DREAL_LOG_INFO_ENABLED (::dreal::log()->should_log(spdlog::level::info)) 63 #define DREAL_LOG_WARN_ENABLED (::dreal::log()->should_log(spdlog::level::warn)) 64 #define DREAL_LOG_ERROR_ENABLED (::dreal::log()->should_log(spdlog::level::err)) 65 #define DREAL_LOG_CRITICAL_ENABLED \ 66 (::dreal::log()->should_log(spdlog::level::critical)) spdlog::logger * log()
Provide a global logger.
Definition: logging.cc:33
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9