XBotInterface
2.4.1
XBotInterface provides a generic API to model and control a robot.
|
#include <RtLog.hpp>
Public Types | |
enum | Severity { Severity::DEBUG = -1, Severity::LOW = 0, Severity::MID = 1, Severity::HIGH = 2, Severity::FATAL = 3 } |
Static Public Member Functions | |
static std::ostream & | log () |
Writes to the internal stream with no special formatting and without changing the severity level (which defaults to HIGH). More... | |
static std::ostream & | info (Logger::Severity s=Logger::Severity::LOW) |
Logs an information message (with bold [INFO] header). More... | |
static void | info (Logger::Severity s, const char *fmt,...) |
Logs an information message (with bold [INFO] header). More... | |
static void | info (const char *fmt,...) |
Logs an information message (with bold [INFO] header). More... | |
static std::ostream & | error (Logger::Severity s=Logger::Severity::HIGH) |
Logs an error message (in red, with bold [ERROR] header). More... | |
static void | error (Logger::Severity s, const char *fmt,...) |
Logs an error message (with bold [error] header). More... | |
static void | error (const char *fmt,...) |
Logs an error message (with bold [error] header). More... | |
static std::ostream & | warning (Logger::Severity s=Logger::Severity::MID) |
Logs a warning message (in yellow, with bold [warning] header). More... | |
static void | warning (Logger::Severity s, const char *fmt,...) |
Logs a warning message (with bold [warning] header). More... | |
static void | warning (const char *fmt,...) |
Logs a warning message (with bold [warning] header). More... | |
static std::ostream & | success (Logger::Severity s=Logger::Severity::LOW) |
Logs a success message (in green, with bold [OK] header). More... | |
static void | success (Logger::Severity s, const char *fmt,...) |
Logs a success message (with bold [success] header). More... | |
static void | success (const char *fmt,...) |
Logs an information message (with bold [INFO] header). More... | |
static Endl & | endl () |
Closes the message and prints to screen. More... | |
static void | SetVerbosityLevel (Logger::Severity s) |
Sets the global verbosity level, i.e. More... | |
static Logger::Severity | GetVerbosityLevel () |
Sets the global verbosity level, i.e. More... | |
static void | SetOnPrintCallback (std::function< void(char *, int, Logger::Severity)> f) |
Sets the on print callback. More... | |
|
strong |
|
static |
Closes the message and prints to screen.
|
static |
Logs an error message (with bold [error] header).
fmt | Formatted string (printf-like) |
|
static |
Logs an error message (with bold [error] header).
s | Message severity. Defaults to HIGH. |
fmt | Formatted string (printf-like) |
... | Values for the formatted string (printf-like) |
|
static |
Logs an error message (in red, with bold [ERROR] header).
s | Message severity. Defaults to HIGH. |
|
static |
Sets the global verbosity level, i.e.
the minimum severity that a message must have in order to actually be printed.
|
static |
Logs an information message (with bold [INFO] header).
fmt | Formatted string (printf-like) |
|
static |
Logs an information message (with bold [INFO] header).
s | Message severity. Defaults to LOW. |
fmt | Formatted string (printf-like) |
... | Values for the formatted string (printf-like) |
|
static |
Logs an information message (with bold [INFO] header).
s | Message severity. Defaults to LOW. |
|
static |
Writes to the internal stream with no special formatting and without changing the severity level (which defaults to HIGH).
|
static |
Sets the on print callback.
The user can customize the printing behavior by providing a custom function to the underlying logger.
|
static |
Sets the global verbosity level, i.e.
the minimum severity that a message must have in order to actually be printed.
|
static |
Logs an information message (with bold [INFO] header).
fmt | Formatted string (printf-like) |
|
static |
Logs a success message (with bold [success] header).
s | Message severity. Defaults to HIGH. |
fmt | Formatted string (printf-like) |
... | Values for the formatted string (printf-like) |
|
static |
Logs a success message (in green, with bold [OK] header).
s | Message severity. Defaults to LOW. |
|
static |
Logs a warning message (with bold [warning] header).
fmt | Formatted string (printf-like) |
|
static |
Logs a warning message (with bold [warning] header).
s | Message severity. Defaults to HIGH. |
fmt | Formatted string (printf-like) |
... | Values for the formatted string (printf-like) |
|
static |
Logs a warning message (in yellow, with bold [warning] header).
s | Message severity. Defaults to MEDIUM. |