Ask Your Question
0

View text files of ROS logs in color

asked 2019-07-17 16:46:14 -0600

jwin gravatar image

Sometimes we save our ROS logs as text files and view them later when we need them. However, it can be difficult to parse everything when it's not in color. Is there any built-in ROS solution for view ROS log text files in the normal stdout color?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-07-18 02:28:42 -0600

gvdhoorn gravatar image

updated 2019-07-18 02:29:15 -0600

Is there any built-in ROS solution for view ROS log text files in the normal stdout color?

No, there isn't afaik.

And I would argue that is also not needed or desirable: the log files are essentially just text files with ANSI escape codes embedded in the log lines. So any tool capable of parsing such codes should be able to read these log files, removing the need to create something ROS-specific.

I believe this was discussed before, in #q204631 for instance. That Q&A also contains some links to tools that can strip them out and also mentions less that should be able to show the contents including ANSI colours.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-07-17 16:46:14 -0600

Seen: 16 times

Last updated: Jul 18