Only include logging when host defined

@craigtracey