How can I save different logs onto separate files?

asked 2017-04-12 02:19:42 -0600

troski gravatar image

updated 2017-04-13 02:58:04 -0600


Using: ROS Indigo Node Language: C++

I am trying to save different logs from different classes in my node onto separate files. I have gone over the documentation about loggers but I am not able to find a clear example on how to implement this. Currently all of my info, warning, and error streams are saved in ~/.ros/logs/node_name-1-stdout.log.

I tried using NAMED streams but they all end in the same file.

Documentation I have gone over so far:

Thanks in advance!

edit retag flag offensive close merge delete


I am also looking for a solution for this, ROS Melodic + Ubuntu 18 + C++, did you (@troski) find any solution? If yes, please let me know.

Hetal Priyadarshi gravatar image Hetal Priyadarshi  ( 2021-01-30 06:22:50 -0600 )edit