Multiple logfiles

OS: Win10
PsychoPy version: 2020.1.3.
Standard Standalone? (y/n) : Y
What are you trying to achieve?: Multiple logfiles for single study

I have an experiment made in builder with three sections. These are different tasks. I would have them in separate files, but since it is a single experiment and it will (hopefully) be going online with Pavlovia, this was the alternative to paying 3x just for a single experiment.

Question: How can I output one logfile per task? Would it be feasible to update the output logfile name at the start of each loop, and then add some code at the end of the loop to output it to that specific file? If so, how can this effectively be achieved?