Redirect stderr output to log file.