redirect the output to the log file