Updated version. Fixed appending newLogs to logOutput.