Initialize controller with logger so that its only used from command line