
Some log manager refactoring to make it easier to later remove all files but the error log. Basically all that was done was to move everything inside the for-loop of thr_filewriter_fun into a separate function called thr_flush_file. Otherwise no changes in functionality was made.