Added option to be able to use an existing logger and thus not having logs going systematically on stdout.