Robotics StackExchange | Archived questions

Send all ros logs to stdout/stderr

Hello, we are running ros in a docker container deployed via our container orchestrator. Our orchestrator is configured to collect logs from containers via stdout and stderr. I know that ros logs some things to stdout/err but also some things to a log file. Is there a way to make ros log everything to stdout/stderr? Thank you.

Asked by johnnyplaydrums on 2022-12-15 16:00:19 UTC

Comments

Answers

I believe adding the --screen option to your roslaunch command line will do this.

Asked by Mike Scheutzow on 2022-12-16 08:51:33 UTC

Comments

Hi Mike, thank you for the quick response! I checked in with my team member who works on our ros instances and she said "the --screen option applies only to roslaunch files, it doesn't work for the rest of our tasks that we directly start from command line". So it sounds like this will work for some of our ros tasks but not all of them. Does that make sense to you?

Asked by johnnyplaydrums on 2022-12-16 14:14:03 UTC

Are you saying you have a ros node that can not be put in a launch file? Please show us details.

Asked by Mike Scheutzow on 2022-12-17 09:14:24 UTC