Redirect stdout and stderr to log files