se2ez
log.h File Reference
#include <boost/format.hpp>
#include <ompl/util/Console.h>

Go to the source code of this file.

Namespaces

 se2ez
 Main namespace.
 
 se2ez::log
 Logging functions. Uses boost::format for formatting, not printf.
 

Macros

#define SE2EZ_ERROR(fmt, ...)   ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_ERROR, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())
 
#define SE2EZ_WARN(fmt, ...)   ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_WARN, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())
 
#define SE2EZ_INFORM(fmt, ...)   ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_INFO, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())
 
#define SE2EZ_DEBUG(fmt, ...)   ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_DEBUG, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())
 
#define SE2EZ_DEVMSG1(fmt, ...)   ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_DEV1, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())
 

Functions

std::string se2ez::log::formatRecurse (boost::format &f)
 
template<class T , class... Args>
std::string se2ez::log::formatRecurse (boost::format &f, T &&t, Args &&... args)
 
template<typename... Args>
std::string se2ez::log::format (const std::string &fmt, Args &&... args)
 
void se2ez::log::showINFORM ()
 
void se2ez::log::showDEBUG ()
 
void se2ez::log::showDEVMSG1 ()
 

Macro Definition Documentation

◆ SE2EZ_DEBUG

#define SE2EZ_DEBUG (   fmt,
  ... 
)    ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_DEBUG, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())

Definition at line 45 of file log.h.

◆ SE2EZ_DEVMSG1

#define SE2EZ_DEVMSG1 (   fmt,
  ... 
)    ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_DEV1, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())

Definition at line 47 of file log.h.

◆ SE2EZ_ERROR

#define SE2EZ_ERROR (   fmt,
  ... 
)    ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_ERROR, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())

Definition at line 39 of file log.h.

◆ SE2EZ_INFORM

#define SE2EZ_INFORM (   fmt,
  ... 
)    ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_INFO, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())

Definition at line 43 of file log.h.

◆ SE2EZ_WARN

#define SE2EZ_WARN (   fmt,
  ... 
)    ompl::msg::log(__FILE__, __LINE__, ompl::msg::LOG_WARN, se2ez::log::format(fmt, ##__VA_ARGS__).c_str())

Definition at line 41 of file log.h.