Added logging initialisation.