Allow Logger and Hostname to be overridden.