Robotics StackExchange | Archived questions

missing ROS_ERR and ROS_FATAL from node log file

I expected messages from ROSERR and ROSFATAL to end up in the log files together with messages from ROS_INFO etc. But with this code in a node:

ROS_ERROR("Test error");
ROS_WARN("Test warn");
ROS_FATAL("Test fatal");

I find that my log file for the node only contains:

Test warn

The error/fatal messages are printed to the console, and can be found in the rosout.log. I miss them in the node log file and expected them there according to roscpp/Overview/Logging

Am I expecting something wrong?

Using ROS kinetic.

Asked by knxa on 2017-09-26 08:57:40 UTC

Comments

I had a similar issue that was marked as a duplicate of this one today. Still looking for an answer. Thanks

Asked by CCGreg on 2018-06-11 07:18:34 UTC

Bump. Looking for an answer.

Asked by Naman on 2019-11-26 08:02:58 UTC

Answers

try this. https://github.com/ros/rosconsole/pull/41

Asked by berry0511 on 2020-04-23 02:28:33 UTC

Comments