Utils: TWEAKING logToFile()