Welcome to the community -- you will find a wealth of information on this site, and on the slack channels...
I remember asking the same question a couple years ago, and a quick search for 'rolling log' on this site helped me to find some similar answers. Try this one
I think that I posted an example flow to the flows site some years ago as well. Showing how to get debug output to the Dashboard. Easily adapted to logs.