Only set LOGFILE and -L when log_location actually set in attributes so that we can properly fall back to STDOUT when it is not