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

How to change log file subdirectory's name?

asked 2021-11-05 05:02:47 -0500

Heho gravatar image

As wiki has said can change link ROS_LOG_DIR , but I want further.

When roscore run, .ros/log will create a folder name likes "eef4c2b6-2c3f-11ea-96bb-0242ac110003". I want to change this directory's name more meaningful one(to me) just like "16:00-11-05-2021-bot001".

So, is there any way to achieve my goal?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-05 06:09:23 -0500

gvdhoorn gravatar image

updated 2021-11-05 06:10:29 -0500

No, AFAIK this is not supported.

The GUID is linked to the /run_id of the roscore instance which started the session and which logs for all nodegraph participants.

There is no support for other -- less unique I believe in your case -- names.

As a work-around: what about symlinking your 16:00-11-05-2021-bot001 to .ros/log/eef4c2b6-2c3f-11ea-96bb-0242ac110003? You can retrieve /run_id from the parameter server, so that should be possible.

edit flag offensive delete link more

Comments

OK, I got it. And thanks for your advice.

Heho gravatar image Heho  ( 2021-11-08 20:53:42 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-11-05 05:02:47 -0500

Seen: 112 times

Last updated: Nov 05 '21