ROS 2 rclcpp + rcl - humble  humble
ROS 2 C++ Client Library with ROS Client Library
Public Member Functions | List of all members
rclcpp::node_interfaces::NodeLogging Class Reference

Implementation of the NodeLogging part of the Node API. More...

#include <rclcpp/node_interfaces/node_logging.hpp>

Inheritance diagram for rclcpp::node_interfaces::NodeLogging:
Inheritance graph
[legend]
Collaboration diagram for rclcpp::node_interfaces::NodeLogging:
Collaboration graph
[legend]

Public Member Functions

RCLCPP_PUBLIC NodeLogging (rclcpp::node_interfaces::NodeBaseInterface *node_base)
 
RCLCPP_PUBLIC rclcpp::Logger get_logger () const override
 Return the logger of the node. More...
 
RCLCPP_PUBLIC const char * get_logger_name () const override
 Return the logger name associated with the node. More...
 

Detailed Description

Implementation of the NodeLogging part of the Node API.

Definition at line 32 of file node_logging.hpp.

Member Function Documentation

◆ get_logger()

rclcpp::Logger NodeLogging::get_logger ( ) const
overridevirtual

Return the logger of the node.

Returns
The logger of the node.

Implements rclcpp::node_interfaces::NodeLoggingInterface.

Definition at line 30 of file node_logging.cpp.

◆ get_logger_name()

const char * NodeLogging::get_logger_name ( ) const
overridevirtual

Return the logger name associated with the node.

Returns
The logger name associated with the node.

Implements rclcpp::node_interfaces::NodeLoggingInterface.

Definition at line 36 of file node_logging.cpp.

References rclcpp::node_interfaces::NodeBaseInterface::get_rcl_node_handle(), and rcl_node_get_logger_name().

Here is the call graph for this function:

The documentation for this class was generated from the following files: