#summon a marker, and run the next function as(and at) it
summon minecraft:marker ~ ~ ~ {Tags:["LogCabGoFind"]}
execute as @e[type=marker,tag=LogCabGoFind,distance=..3] run execute at @s positioned ~ ~ ~ run function zzzzdonotuse:structures/logcabin/logcabin2