Robowflex  v0.1
Making MoveIt Easy
log.h File Reference
#include <boost/format.hpp>
#include <ros/console.h>

Go to the source code of this file.

Namespaces

 robowflex
 Main namespace. Contains all library classes and functions.
 
 robowflex::log
 Logging functions.
 

Macros

#define RBX_FATAL(fmt, ...)   ROS_FATAL_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())
 Output a fatal logging message. More...
 
#define RBX_ERROR(fmt, ...)   ROS_ERROR_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())
 Output a error logging message. More...
 
#define RBX_WARN(fmt, ...)   ROS_WARN_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())
 Output a warning logging message. More...
 
#define RBX_INFO(fmt, ...)   ROS_INFO_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())
 Output a info logging message. More...
 
#define RBX_DEBUG(fmt, ...)   ROS_DEBUG_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())
 Output a debug logging message. More...
 

Functions

std::string robowflex::log::formatRecurse (boost::format &f)
 Recursion base case, return string form of formatted arguments. More...
 
template<class T , class... Args>
std::string robowflex::log::formatRecurse (boost::format &f, T &&t, Args &&... args)
 Recursion base case, return string form of formatted arguments. More...
 
template<typename... Args>
std::string robowflex::log::format (const std::string &fmt, Args &&... args)
 Recursion base case, return string form of formatted arguments. More...
 
void robowflex::log::showUpToFatal ()
 Show all logging messages fatal and above. More...
 
void robowflex::log::showUpToError ()
 Show all logging messages error and above. More...
 
void robowflex::log::showUpToWarning ()
 Show all logging messages warning and above. More...
 
void robowflex::log::showUpToInfo ()
 Show all logging messages info and above. More...
 
void robowflex::log::showUpToDebug ()
 Show all logging messages debug and above. More...
 

Macro Definition Documentation

◆ RBX_DEBUG

#define RBX_DEBUG (   fmt,
  ... 
)    ROS_DEBUG_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())

Output a debug logging message.

Parameters
[in]fmtFormat string (see boost::format specification)
[in]...Format arguments.

Definition at line 126 of file log.h.

◆ RBX_ERROR

#define RBX_ERROR (   fmt,
  ... 
)    ROS_ERROR_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())

Output a error logging message.

Parameters
[in]fmtFormat string (see boost::format specification)
[in]...Format arguments.

Definition at line 102 of file log.h.

◆ RBX_FATAL

#define RBX_FATAL (   fmt,
  ... 
)    ROS_FATAL_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())

Output a fatal logging message.

Parameters
[in]fmtFormat string (see boost::format specification)
[in]...Format arguments.

Definition at line 94 of file log.h.

◆ RBX_INFO

#define RBX_INFO (   fmt,
  ... 
)    ROS_INFO_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())

Output a info logging message.

Parameters
[in]fmtFormat string (see boost::format specification)
[in]...Format arguments.

Definition at line 118 of file log.h.

◆ RBX_WARN

#define RBX_WARN (   fmt,
  ... 
)    ROS_WARN_STREAM(robowflex::log::format(fmt, ##__VA_ARGS__).c_str())

Output a warning logging message.

Parameters
[in]fmtFormat string (see boost::format specification)
[in]...Format arguments.

Definition at line 110 of file log.h.