|
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.
|
Message namespace. This contains classes needed to output error messages (or logging) from within the library. Message logging can be performed with logging macros. More...
Classes | |
| class | OutputHandler |
| Generic class to handle output from a piece of code. More... | |
| class | OutputHandlerFile |
| Implementation of OutputHandler that saves messages in a file. More... | |
| class | OutputHandlerSTD |
| Default implementation of OutputHandler. This sends the information to the console. More... | |
Functions | |
| CONSOLE_BRIDGE_DLLAPI void | noOutputHandler (void) |
| This function instructs console bridge that no messages should be outputted. Equivalent to useOutputHandler(NULL) More... | |
| CONSOLE_BRIDGE_DLLAPI void | restorePreviousOutputHandler (void) |
| Restore the output handler that was previously in use (if any) More... | |
| CONSOLE_BRIDGE_DLLAPI void | useOutputHandler (OutputHandler *oh) |
| Specify the instance of the OutputHandler to use. By default, this is OutputHandlerSTD. More... | |
| CONSOLE_BRIDGE_DLLAPI OutputHandler * | getOutputHandler (void) |
| Get the instance of the OutputHandler currently used. This is NULL in case there is no output handler. More... | |
| CONSOLE_BRIDGE_DLLAPI void | setLogLevel (LogLevel level) |
| Set the minimum level of logging data to output. Messages with lower logging levels will not be recorded. More... | |
| CONSOLE_BRIDGE_DLLAPI LogLevel | getLogLevel (void) |
| Retrieve the current level of logging data. Messages with lower logging levels will not be recorded. More... | |
| CONSOLE_BRIDGE_DLLAPI void | log (const char *file, int line, LogLevel level, const char *m,...) |
| Root level logging function. This should not be invoked directly, but rather used via a logging macro. Formats the message string given the arguments and forwards the string to the output handler. More... | |
Message namespace. This contains classes needed to output error messages (or logging) from within the library. Message logging can be performed with logging macros.
| CONSOLE_BRIDGE_DLLAPI void console_bridge::noOutputHandler | ( | void | ) |
This function instructs console bridge that no messages should be outputted. Equivalent to useOutputHandler(NULL)
| CONSOLE_BRIDGE_DLLAPI void console_bridge::restorePreviousOutputHandler | ( | void | ) |
Restore the output handler that was previously in use (if any)
| CONSOLE_BRIDGE_DLLAPI void console_bridge::useOutputHandler | ( | OutputHandler * | oh | ) |
Specify the instance of the OutputHandler to use. By default, this is OutputHandlerSTD.
| CONSOLE_BRIDGE_DLLAPI OutputHandler* console_bridge::getOutputHandler | ( | void | ) |
Get the instance of the OutputHandler currently used. This is NULL in case there is no output handler.
| CONSOLE_BRIDGE_DLLAPI void console_bridge::setLogLevel | ( | LogLevel | level | ) |
Set the minimum level of logging data to output. Messages with lower logging levels will not be recorded.
| CONSOLE_BRIDGE_DLLAPI LogLevel console_bridge::getLogLevel | ( | void | ) |
Retrieve the current level of logging data. Messages with lower logging levels will not be recorded.
| CONSOLE_BRIDGE_DLLAPI void console_bridge::log | ( | const char * | file, |
| int | line, | ||
| LogLevel | level, | ||
| const char * | m, | ||
| ... | |||
| ) |
Root level logging function. This should not be invoked directly, but rather used via a logging macro. Formats the message string given the arguments and forwards the string to the output handler.
1.8.17