What is the intention of using spdlog under the hood?
So now (since eloquent?) the nice spdlog library is used under the hood for logging. I was wondering if there is any plan on further integration?
More specifically, I would look forward to having an API similar to spdlog while using rclcpp.
While thinking about this question, I realized that spdlog comes with fmtlib, which seems to do the heavy lifting w.r.t. the string formatting. Since spdlog comes installed with ROS2 automatically, I can now do the following in my code:
Yes, exactly. Could you perhaps give an example of what sort of API you would want specifically in
rclcpp
?Something shorter like this:
The question mainly comes from the point where I wonder what the benefit of the switch to spdlog is for the user. Using
fmt::format
was also possible already before the switch by just installing fmtlib and using it directly.