logging var subst for api