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.
|
Generic class to handle output from a piece of code. More...
#include <console.h>
Public Member Functions | |
OutputHandler (void) | |
virtual | ~OutputHandler (void) |
virtual void | log (const std::string &text, LogLevel level, const char *filename, int line)=0 |
log a message to the output handler with the given text and logging level from a specific file and line number More... | |
Generic class to handle output from a piece of code.
In order to handle output from the library in different ways, an implementation of this class needs to be provided. This instance can be set with the useOutputHandler function.
|
inline |
|
inlinevirtual |
|
pure virtual |
log a message to the output handler with the given text and logging level from a specific file and line number
text | to log |
level | console_bridge log level |
filename | of the output log |
line |
Implemented in console_bridge::OutputHandlerFile, and console_bridge::OutputHandlerSTD.