42 rcutils_logging_severity_level_from_string(severity_string.c_str(), rcl_get_default_allocator(), &severity);
43 if (RCUTILS_RET_LOGGING_SEVERITY_STRING_INVALID == ret) {
44 throw exceptions::SetLoggingSeverityError(
"Unknown severity string '" + severity_string +
"'");
46 if (ret != RCUTILS_RET_OK) {
47 const std::string msg = rcutils_get_error_string().str;
48 rcutils_reset_error();
49 throw exceptions::SetLoggingSeverityError(msg);
52 ret = rcutils_logging_set_logger_level(logger.get_name(), severity);
53 if (ret != RCUTILS_RET_OK) {
54 const std::string msg = rcutils_get_error_string().str;
55 rcutils_reset_error();
56 throw exceptions::SetLoggingSeverityError(msg);
62 switch (severity_level) {
63 case rclcpp::Logger::Level::Debug:
66 case rclcpp::Logger::Level::Info:
69 case rclcpp::Logger::Level::Warn:
72 case rclcpp::Logger::Level::Error:
75 case rclcpp::Logger::Level::Fatal:
78 case rclcpp::Logger::Level::Unset: