36 #include <log4cxx/logger.h> 55 ROS_DEBUG(
"This is a debug statement, and should print");
56 ROS_INFO(
"This is an info statement, and should print");
57 ROS_WARN(
"This is a warn statement, and should print");
58 ROS_ERROR(
"This is an error statement, and should print");
59 ROS_FATAL(
"This is a fatal statement, and should print");
62 print(ros::console::levels::Debug,
"Hello, this should print");
66 print(ros::console::levels::Debug,
"Hello, this will also print");
71 print(ros::console::levels::Debug,
"Hello, this will NOT print");
77 ROS_DEBUG(
"This will still print, because the child logger's level overrides its ancestor loggers' levels");
81 ROS_INFO_NAMED(
"test",
"This will not print, because the ros.rosconsole.test logger has been set to Error verbosity");
83 ROS_INFO_NAMED(
"test",
"Now everything sent to the ros.rosconsole.test logger will be printed (including this)");
log4cxx::LevelPtr g_level_lookup[levels::Count]
#define ROS_INFO_NAMED(name,...)
ROSCONSOLE_DECL void notifyLoggerLevelsChanged()
Tells the system that a logger's level has changed.
#define ROSCONSOLE_AUTOINIT
Initializes the rosconsole library. Usually unnecessary to call directly.
#define ROSCONSOLE_ROOT_LOGGER_NAME
#define ROS_LOG(level, name,...)
Log to a given named logger at a given verbosity level, with printf-style formatting.
#define ROSCONSOLE_DEFAULT_NAME
void print(ros::console::Level level, const std::string &s)