Function rclcpp::get_logger

Function Documentation

Logger rclcpp::get_logger(const std::string &name)

Return a named logger.

The returned logger’s name will include any naming conventions, such as a name prefix. Currently there are no such naming conventions but they may be introduced in the future.

Parameters:

name[in] the name of the logger

Returns:

a logger with the fully-qualified name including naming conventions, or

Returns:

a dummy logger if logging is disabled.