Changed position where we initialize the logger