#include <logger.hpp>
◆ Logger()
rclcpp::Logger::Logger |
( |
const Logger & |
| ) |
|
|
default |
◆ get_name()
const char* rclcpp::Logger::get_name |
( |
| ) |
const |
|
inline |
Get the name of this logger.
- Returns
- the full name of the logger including any prefixes, or
-
nullptr
if this logger is invalid (e.g. because logging is disabled).
◆ get_child()
Return a logger that is a descendant of this logger.
The child logger's full name will include any hierarchy conventions that indicate it is a descendant of this logger. For example, get_logger('abc').get_child('def')
will return a logger with name abc.def
.
- Parameters
-
[in] | suffix | the child logger's suffix |
- Returns
- a logger with the fully-qualified name including the suffix, or
-
a dummy logger if this logger is invalid (e.g. because logging is disabled).
◆ rclcpp::get_logger
The documentation for this class was generated from the following file: