Robowflex  v0.1
Making MoveIt Easy
log.cpp
Go to the documentation of this file.
1 /* Author: Zachary Kingston */
2 
4 
5 using namespace robowflex;
6 
7 namespace
8 {
9  void setLoggerLevel(ros::console::Level level)
10  {
11  if (ros::console::set_logger_level(ROSCONSOLE_DEFAULT_NAME, level))
12  ros::console::notifyLoggerLevelsChanged();
13  }
14 } // namespace
15 
17 {
18  return boost::str(f);
19 }
20 
22 {
23  setLoggerLevel(ros::console::levels::Fatal);
24 }
25 
27 {
28  setLoggerLevel(ros::console::levels::Error);
29 }
30 
32 {
33  setLoggerLevel(ros::console::levels::Warn);
34 }
35 
37 {
38  setLoggerLevel(ros::console::levels::Info);
39 }
40 
42 {
43  setLoggerLevel(ros::console::levels::Debug);
44 }
std::string format(const std::string &fmt, Args &&... args)
Recursion base case, return string form of formatted arguments.
Definition: log.h:60
void showUpToDebug()
Show all logging messages debug and above.
Definition: log.cpp:41
void showUpToWarning()
Show all logging messages warning and above.
Definition: log.cpp:31
void showUpToInfo()
Show all logging messages info and above.
Definition: log.cpp:36
void showUpToError()
Show all logging messages error and above.
Definition: log.cpp:26
void showUpToFatal()
Show all logging messages fatal and above.
Definition: log.cpp:21
std::string formatRecurse(boost::format &f)
Recursion base case, return string form of formatted arguments.
Definition: log.cpp:16
Main namespace. Contains all library classes and functions.
Definition: scene.cpp:25