ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Set log level for non-ROS nodes (my own nodes)

asked 2014-11-13 09:53:27 -0500

SR gravatar image

In rosconsole.config one can configure ROS to report not only log messages with levels INFO and higher but e.g. for DEBUG and higher:

log4j.logger.ros=DEBUG
log4j.logger.ros.roscpp.superdebug=WARN

Unfortunately this really spams the log with all the debug messages coming from ROS nodes. How do I configure ROS to use the log level >=INFO for ROS' own nodes and >=DEBUG for my own nodes?

Also what is the meaning of

log4j.logger.ros.roscpp.superdebug

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-11-13 10:13:18 -0500

dornhege gravatar image

updated 2014-11-13 10:14:08 -0500

Just set the logger for you nodes only, but not ros in general, e.g.:

log4j.logger.ros.trajectory_planner=DEBUG

superdebug is afaik basically a super-spammy debug. Something you'll probably never need, unless you are a core developer or have problems with the middleware/roscpp itself.

edit flag offensive delete link more

Comments

Thanks. It works!

SR gravatar image SR  ( 2014-11-17 11:55:36 -0500 )edit

Question Tools

Stats

Asked: 2014-11-13 09:53:27 -0500

Seen: 836 times

Last updated: Nov 13 '14