os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
I have worker thread(s) that use the logger. In the main thread, I occasionally need to ask the user to take some action. Which means I need to suppress the logger from actually printing until the ...