Replaces application.output with call to logger