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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] Setting logging level per-node at runtime
Argh, I guess it was staring me in the face. Thanks Ken.

Pat

On Mon, Jan 17, 2011 at 11:56 AM, Ken Conley <> wrote:
> Hi Patrick,
>
> On Mon, Jan 17, 2011 at 11:42 AM, Patrick Bouffard
> <> 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
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>