Skip to content

Commit f49281d

Browse files
add log file name as launch argument
Signed-off-by: Tanishq Chaudhary <[email protected]>
1 parent 6f17a51 commit f49281d

File tree

1 file changed

+3
-0
lines changed
  • ros2launch/ros2launch/api

1 file changed

+3
-0
lines changed

ros2launch/ros2launch/api/api.py

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ def launch_a_launch_file(
159159
if args and args.launch_prefix_filter:
160160
launch_file_arguments.append(f'launch-prefix-filter:={args.launch_prefix_filter}')
161161

162+
if args and args.log_file_name:
163+
launch_file_arguments.append(f'log-file-name:={args.log_file_name}')
164+
162165
launch_service = launch.LaunchService(
163166
argv=launch_file_arguments,
164167
noninteractive=noninteractive,

0 commit comments

Comments
 (0)