3 #ifndef SE2EZ_CORE_LOG_ 4 #define SE2EZ_CORE_LOG_ 6 #include <boost/format.hpp> 7 #include <ompl/util/Console.h> 18 template <
class T,
class... Args>
21 return formatRecurse(f % std::forward<T>(t), std::forward<Args>(args)...);
24 template <
typename... Args>
39 #define SE2EZ_ERROR(fmt, ...) \ 40 ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_ERROR, se2ez::log::format(fmt, ##__VA_ARGS__).c_str()) 41 #define SE2EZ_WARN(fmt, ...) \ 42 ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_WARN, se2ez::log::format(fmt, ##__VA_ARGS__).c_str()) 43 #define SE2EZ_INFORM(fmt, ...) \ 44 ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_INFO, se2ez::log::format(fmt, ##__VA_ARGS__).c_str()) 45 #define SE2EZ_DEBUG(fmt, ...) \ 46 ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_DEBUG, se2ez::log::format(fmt, ##__VA_ARGS__).c_str()) 47 #define SE2EZ_DEVMSG1(fmt, ...) \ 48 ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_DEV1, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())
std::string formatRecurse(boost::format &f)
std::string format(const std::string &fmt, Args &&... args)