-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make rcl call rmw_set_log_severity
#915
Comments
rcl_logging_configure
call rmw_set_log_severity
rmw_set_log_severity
i think it makes sense, probably setting default log level during |
assuming you mean I opened a simple draft PR just to have a concrete proposition: #918 |
Are there any plans to progress with resolving this issue? Getting logs out of the RMW while integrating ROS2 into target hardware has been a pain point for us. In the case of Fast DDS, getting logs currently require:
The first step is not much of an issue for us as we are building Fast DDS as part of our pipeline and it's easy enough to create a build with those options set. However, the second step is the more obtrusive issue as we now have to start modifying source code, potentially in many locations. I can see the reasoning for not necessarily wanting to couple the RCL and RMW log levels, but it would be nice to have some solution to enable RMW log messages. Here are a few options that could be considered:
If there is a strong preference either way, then I can start working on an alternative to #918 to implement the preference. |
Unfortunately, I think adding a new config option, such as a new CLI option or a new env var, may be even less well-received than the current proposal (#918). We've been wanting to figure out logging by creating a coherent overall strategy for the past few years (see ros2/design#314), which is why some of these small/one-off changes have been put on hold, but it hasn't really happened yet (ros2/design#315). I can bring this issue up during the next ROS 2 PMC meeting, but it may get pushed back a bit. |
@christophebedard @clalancette
|
Yeah, I think this makes sense.
We could also make it Then this could be set through a logging configuration file (if/when we get this) using the equivalent to |
Feature request
Feature description
rmw_set_log_severity
was added in:It's implemented by the rmw implementations (Cyclone DDS, FastDDS, Connext), but it doesn't really seem to be used anywhere/by anything.
It would make sense to have
rcl
(e.g.rcl_logging_configure()
?) callrmw_set_log_severity()
along with its own logging level configuration. Is there any reason why these two shouldn't be connected?Implementation considerations
TBD
The text was updated successfully, but these errors were encountered: