QGC Log Download from Python

I am running a python simulation in Ubuntu that builds the flight code and simulates the flight software, connects to the fsw via udb and runs a .plan file via mavlink commands, I am downloading the .ulog file after the mission completes but it’s transferring via udp so it’s painfully slow. When running software in the loop, where are the logs stored? Can I just copy them directly?

I found the .ulg files, they are in PX4/build/px4_sitl_default/rootfs/log