Re-throw exception if no logger defined