ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Loggers in ROS

asked 2017-11-21 22:51:53 -0500

2ROS0 gravatar image

I'm trying to understand loggers in ROS. The roscpp overview page mentions different loggers. And when you use the NAMED macros, they make "child" loggers. It also mentions there is more information in a configuration file that is not linked.

What is a logger? And what is a child logger and the need/use case for it?

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-11-22 02:43:33 -0500

prince gravatar image

Logger allows programmer to control the verbosity of the print statements, with change of verbosity level in configuration file, obviously without recompiling the code. As you have read in the Overview page, ROS logger support different versions. By changing the verbosity level in the configuration file, one can control what will get printed on the system console. Please read section 2 of rosconsole page for further details. Also rqt_console, allow much better control over print statements and display of them.

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: 2017-11-21 22:51:53 -0500

Seen: 439 times

Last updated: Nov 22 '17