0
$\begingroup$

Rosanswers logo

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!


Originally posted by SR on ROS Answers with karma: 152 on 2014-11-13

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by dornhege with karma: 31395 on 2014-11-13

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by SR on 2014-11-17:
Thanks. It works!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.