[ros-users] Setting logging level per-node at runtime

Ken Conley kwc at willowgarage.com
Mon Jan 17 19:56:11 UTC 2011


Hi Patrick,

On Mon, Jan 17, 2011 at 11:42 AM, Patrick Bouffard
<bouffard at eecs.berkeley.edu> wrote:
> Is there a way with rosrun and/or roslaunch to specify the verbosity
> of logging messages on a per-node basis? So say I have a complex
> launchfile with many nodes, one of which is acting up, and I want to
> see that node's DEBUG messages. I know I can change levels with
> rxloggerlevel but it seems that I might be missing messages that occur
> between startup of the node and when I change the level with that
> tool.
>
> It seems that this can be done by editing
> $ROS_ROOT/config/rosconsole.config, but $ROS_ROOT (/opt/ros/unstable
> in my case) is not user-writable on a deb-installed system so this
> seems like a less than ideal option. Also I assume that if my node is
> being started on a remote machine with the machine attribute in
> roslaunch, that I would have to change rosconsole.config on that
> remote machine, not on the local one, is that correct?

You can override the location of the config files using these
environment variables:

http://www.ros.org/wiki/ROS/EnvironmentVariables#Node_Environment_Variables

And yes, you would have to change the remote file used.

cheers,
Ken



More information about the ros-users mailing list