Redirected stdout and stderr to a log file