rclcpp
master
C++ ROS Client Library API
|
#include <type_traits>
#include "rclcpp/logger.hpp"
#include "rcutils/logging_macros.h"
#include "rclcpp/utilities.hpp"
Go to the source code of this file.
Macros | |
#define | RCLCPP_LOG_MIN_SEVERITY_DEBUG 0 |
#define | RCLCPP_LOG_MIN_SEVERITY_INFO 1 |
#define | RCLCPP_LOG_MIN_SEVERITY_WARN 2 |
#define | RCLCPP_LOG_MIN_SEVERITY_ERROR 3 |
#define | RCLCPP_LOG_MIN_SEVERITY_FATAL 4 |
#define | RCLCPP_LOG_MIN_SEVERITY_NONE 5 |
#define | RCLCPP_FIRST_ARG(N, ...) N |
#define | RCLCPP_ALL_BUT_FIRST_ARGS(N, ...) __VA_ARGS__ |
#define | RCLCPP_LOG_MIN_SEVERITY RCLCPP_LOG_MIN_SEVERITY_DEBUG |
Logging macros for severity DEBUG. | |
#define | RCLCPP_DEBUG(logger, ...) |
#define | RCLCPP_DEBUG_ONCE(logger, ...) |
#define | RCLCPP_DEBUG_EXPRESSION(logger, expression, ...) |
#define | RCLCPP_DEBUG_FUNCTION(logger, function, ...) |
#define | RCLCPP_DEBUG_SKIPFIRST(logger, ...) |
Logging macros for severity INFO. | |
#define | RCLCPP_INFO(logger, ...) |
#define | RCLCPP_INFO_ONCE(logger, ...) |
#define | RCLCPP_INFO_EXPRESSION(logger, expression, ...) |
#define | RCLCPP_INFO_FUNCTION(logger, function, ...) |
#define | RCLCPP_INFO_SKIPFIRST(logger, ...) |
Logging macros for severity WARN. | |
#define | RCLCPP_WARN(logger, ...) |
#define | RCLCPP_WARN_ONCE(logger, ...) |
#define | RCLCPP_WARN_EXPRESSION(logger, expression, ...) |
#define | RCLCPP_WARN_FUNCTION(logger, function, ...) |
#define | RCLCPP_WARN_SKIPFIRST(logger, ...) |
Logging macros for severity ERROR. | |
#define | RCLCPP_ERROR(logger, ...) |
#define | RCLCPP_ERROR_ONCE(logger, ...) |
#define | RCLCPP_ERROR_EXPRESSION(logger, expression, ...) |
#define | RCLCPP_ERROR_FUNCTION(logger, function, ...) |
#define | RCLCPP_ERROR_SKIPFIRST(logger, ...) |
Logging macros for severity FATAL. | |
#define | RCLCPP_FATAL(logger, ...) |
#define | RCLCPP_FATAL_ONCE(logger, ...) |
#define | RCLCPP_FATAL_EXPRESSION(logger, expression, ...) |
#define | RCLCPP_FATAL_FUNCTION(logger, function, ...) |
#define | RCLCPP_FATAL_SKIPFIRST(logger, ...) |
#define RCLCPP_LOG_MIN_SEVERITY_DEBUG 0 |
#define RCLCPP_LOG_MIN_SEVERITY_INFO 1 |
#define RCLCPP_LOG_MIN_SEVERITY_WARN 2 |
#define RCLCPP_LOG_MIN_SEVERITY_ERROR 3 |
#define RCLCPP_LOG_MIN_SEVERITY_FATAL 4 |
#define RCLCPP_LOG_MIN_SEVERITY_NONE 5 |
#define RCLCPP_FIRST_ARG | ( | N, | |
... | |||
) | N |
#define RCLCPP_ALL_BUT_FIRST_ARGS | ( | N, | |
... | |||
) | __VA_ARGS__ |
#define RCLCPP_LOG_MIN_SEVERITY RCLCPP_LOG_MIN_SEVERITY_DEBUG |
Define RCLCPP_LOG_MIN_SEVERITY=RCLCPP_LOG_MIN_SEVERITY_[DEBUG|INFO|WARN|ERROR|FATAL] in your build options to compile out anything below that severity. Use RCLCPP_LOG_MIN_SEVERITY_NONE to compile out all macros.
#define RCLCPP_DEBUG | ( | logger, | |
... | |||
) |
Log a message with severity DEBUG.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_DEBUG_ONCE | ( | logger, | |
... | |||
) |
Log a message with severity DEBUG with the following conditions: All subsequent log calls except the first one are being ignored.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_DEBUG_EXPRESSION | ( | logger, | |
expression, | |||
... | |||
) |
Log a message with severity DEBUG with the following conditions: Log calls are being ignored when the expression evaluates to false.
logger | The rclcpp::Logger to use |
expression | The expression determining if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_DEBUG_FUNCTION | ( | logger, | |
function, | |||
... | |||
) |
Log a message with severity DEBUG with the following conditions: Log calls are being ignored when the function returns false.
logger | The rclcpp::Logger to use |
function | The functions return value determines if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_DEBUG_SKIPFIRST | ( | logger, | |
... | |||
) |
Log a message with severity DEBUG with the following conditions: The first log call is being ignored but all subsequent calls are being processed.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_INFO | ( | logger, | |
... | |||
) |
Log a message with severity INFO.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_INFO_ONCE | ( | logger, | |
... | |||
) |
Log a message with severity INFO with the following conditions: All subsequent log calls except the first one are being ignored.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_INFO_EXPRESSION | ( | logger, | |
expression, | |||
... | |||
) |
Log a message with severity INFO with the following conditions: Log calls are being ignored when the expression evaluates to false.
logger | The rclcpp::Logger to use |
expression | The expression determining if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_INFO_FUNCTION | ( | logger, | |
function, | |||
... | |||
) |
Log a message with severity INFO with the following conditions: Log calls are being ignored when the function returns false.
logger | The rclcpp::Logger to use |
function | The functions return value determines if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_INFO_SKIPFIRST | ( | logger, | |
... | |||
) |
Log a message with severity INFO with the following conditions: The first log call is being ignored but all subsequent calls are being processed.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_WARN | ( | logger, | |
... | |||
) |
Log a message with severity WARN.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_WARN_ONCE | ( | logger, | |
... | |||
) |
Log a message with severity WARN with the following conditions: All subsequent log calls except the first one are being ignored.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_WARN_EXPRESSION | ( | logger, | |
expression, | |||
... | |||
) |
Log a message with severity WARN with the following conditions: Log calls are being ignored when the expression evaluates to false.
logger | The rclcpp::Logger to use |
expression | The expression determining if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_WARN_FUNCTION | ( | logger, | |
function, | |||
... | |||
) |
Log a message with severity WARN with the following conditions: Log calls are being ignored when the function returns false.
logger | The rclcpp::Logger to use |
function | The functions return value determines if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_WARN_SKIPFIRST | ( | logger, | |
... | |||
) |
Log a message with severity WARN with the following conditions: The first log call is being ignored but all subsequent calls are being processed.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_ERROR | ( | logger, | |
... | |||
) |
Log a message with severity ERROR.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_ERROR_ONCE | ( | logger, | |
... | |||
) |
Log a message with severity ERROR with the following conditions: All subsequent log calls except the first one are being ignored.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_ERROR_EXPRESSION | ( | logger, | |
expression, | |||
... | |||
) |
Log a message with severity ERROR with the following conditions: Log calls are being ignored when the expression evaluates to false.
logger | The rclcpp::Logger to use |
expression | The expression determining if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_ERROR_FUNCTION | ( | logger, | |
function, | |||
... | |||
) |
Log a message with severity ERROR with the following conditions: Log calls are being ignored when the function returns false.
logger | The rclcpp::Logger to use |
function | The functions return value determines if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_ERROR_SKIPFIRST | ( | logger, | |
... | |||
) |
Log a message with severity ERROR with the following conditions: The first log call is being ignored but all subsequent calls are being processed.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_FATAL | ( | logger, | |
... | |||
) |
Log a message with severity FATAL.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_FATAL_ONCE | ( | logger, | |
... | |||
) |
Log a message with severity FATAL with the following conditions: All subsequent log calls except the first one are being ignored.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_FATAL_EXPRESSION | ( | logger, | |
expression, | |||
... | |||
) |
Log a message with severity FATAL with the following conditions: Log calls are being ignored when the expression evaluates to false.
logger | The rclcpp::Logger to use |
expression | The expression determining if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_FATAL_FUNCTION | ( | logger, | |
function, | |||
... | |||
) |
Log a message with severity FATAL with the following conditions: Log calls are being ignored when the function returns false.
logger | The rclcpp::Logger to use |
function | The functions return value determines if the message should be logged |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |
#define RCLCPP_FATAL_SKIPFIRST | ( | logger, | |
... | |||
) |
Log a message with severity FATAL with the following conditions: The first log call is being ignored but all subsequent calls are being processed.
logger | The rclcpp::Logger to use |
... | The format string, followed by the variable arguments for the format string. It also accepts a single argument of type std::string. |