Kobuki 1.0.0
C++ API for the Kobuki research robot
Loading...
Searching...
No Matches
logging.hpp File Reference

Log levels and simple logging to screen. More...

#include <iostream>
#include <string>
#include <ecl/console.hpp>
Include dependency graph for logging.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  kobuki::LogLevel {
  DEBUG = 0 , INFO = 1 , WARNING = 2 , ERROR = 3 ,
  NONE = 4
}
 Internal logging levels. More...
 

Functions

void kobuki::logDebug (const std::string &message)
 
void kobuki::logInfo (const std::string &message)
 
void kobuki::logWarning (const std::string &message)
 
void kobuki::logError (const std::string &message)
 

Detailed Description

Log levels and simple logging to screen.

License: BSD https://raw.githubusercontent.com/kobuki-base/kobuki_core/license/LICENSE

Enumeration Type Documentation

◆ LogLevel

Internal logging levels.

Kobuki will log to stdout the specified log level and higher. For example if WARNING is specified, it will log both warning and error messages. To disable logging, use NONE.

To connect to your own logging infrastructure, use NONE and provide slots (callbacks) to the kobuki debug, info, warning and error signals.