Duplicating output to log file