Only invoke logger if it's setup