redirect cout to output.log file