I would tell you if it works, but how can I test it?
I can add your code snippet to every section, save the file and restart everything.
But how can I be sure if it doesn't create more then 10 log files and each not bigger then 10 MB?
This doesn't solve my initial problem. Even with 10 logfiles à 10MB the startup-process showing all my previous replication steps and all my local search attempts spend already several minutes until the scrolling stops