rclcpp  master
C++ ROS Client Library API
Classes | Namespaces | Macros | Functions
logger.hpp File Reference
#include <memory>
#include <string>
#include "rclcpp/visibility_control.hpp"
#include "rcl/node.h"
Include dependency graph for logger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rclcpp::Logger
 

Namespaces

 rclcpp
 This header provides the get_node_topics_interface() template function.
 
 rclcpp::node_interfaces
 

Macros

#define RCLCPP_LOGGING_ENABLED   1
 

Functions

Logger rclcpp::get_logger (const std::string &name)
 Return a named logger. More...
 
Logger rclcpp::get_node_logger (const rcl_node_t *node)
 Return a named logger using an rcl_node_t. More...
 

Macro Definition Documentation

◆ RCLCPP_LOGGING_ENABLED

#define RCLCPP_LOGGING_ENABLED   1

When this define evaluates to true (default), logger factory functions will behave normally. When false, logger factory functions will create dummy loggers to avoid computational expense in manipulating objects. This should be used in combination with RCLCPP_LOG_MIN_SEVERITY to compile out logging macros.