write to log if output file not set or found