-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Description
Feature Request
Feature Description
A c++ function to set log level of a specific logger under the rclcpp::Logger class.
Implementation Considerations
- the current implementation could be done using the following codes, but it's based on c, not c++:
if (rcutils_logging_set_logger_level(logger.get_name(), RCUTILS_LOG_SEVERITY_INFO) != RCUTILS_RET_OK) { RCUTILS_LOG_FATAL("could not set the logger level"); }
- add a
voidfunction that throw an error on fail or add abooleanfunction that return false on fail under therclcpp::Loggerclass. - (optional) add a more c++ friendly enum to be used to set the log level instead of using the RCUTILS_LOG_SEVERITY enum.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels