0
$\begingroup$

Rosanswers logo

Hi,

I'm very sorry if this is a repeat question, but I'm using robot_upstart which dumps all logging output into the single file /var/log/upstart/foo.log. This makes it really hard to tell which node is talking. I'm currently getting the generic error "Failed to open port" and I'm not sure how to figure out where this message is coming from.

Is there a way to get ROS logging to display to node name?


Originally posted by shoemakerlevy9 on ROS Answers with karma: 545 on 2017-04-10

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Use console output formatting. You can set that one time on the command line or add it to your ~/.bashrc file. For robot_upstart you might have to add it in a separate spot or make sure you are using the .bashrc of the appropriate user. To get the node name, log level, time and message you could have something like:

export ROSCONSOLE_FORMAT='[${severity}] - ${node}: [${time}] ${message}'

Originally posted by Thomas D with karma: 4347 on 2017-04-10

This answer was ACCEPTED on the original site

Post score: 7

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.