console_bridge_dev  master
It is a ROS-independent, pure CMake (i.e. non-catkin and non-rosbuild package) that provides logging calls that mirror those found in rosconsole, but for applications that are not necessarily using ROS.
All Classes Namespaces Files Functions Variables Modules Pages
Macros
Logging Macros

Macros

#define CONSOLE_BRIDGE_logError(...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__)
 Log a formatted error string. More...
 
#define CONSOLE_BRIDGE_logWarn(...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__)
 Log a formatted warning string. More...
 
#define CONSOLE_BRIDGE_logInform(...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__)
 Log a formatted information string. More...
 
#define CONSOLE_BRIDGE_logDebug(...)   console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__)
 Log a formatted debugging string. More...
 

Detailed Description

Macro Definition Documentation

◆ CONSOLE_BRIDGE_logError

#define CONSOLE_BRIDGE_logError (   ...)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, __VA_ARGS__)

Log a formatted error string.

Remarks
This macro takes the same arguments as printf.

◆ CONSOLE_BRIDGE_logWarn

#define CONSOLE_BRIDGE_logWarn (   ...)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_WARN, __VA_ARGS__)

Log a formatted warning string.

Remarks
This macro takes the same arguments as printf.

◆ CONSOLE_BRIDGE_logInform

#define CONSOLE_BRIDGE_logInform (   ...)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_INFO, __VA_ARGS__)

Log a formatted information string.

Remarks
This macro takes the same arguments as printf.

◆ CONSOLE_BRIDGE_logDebug

#define CONSOLE_BRIDGE_logDebug (   ...)    console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_DEBUG, __VA_ARGS__)

Log a formatted debugging string.

Remarks
This macro takes the same arguments as printf.