Added option to be able to use an existing logger and thus not having lo...

...gs going systematically on stdout.