Allow to override logger

This allows to control more easily what is being logged and how.
Merge pull request #1 from dieppe/dev

Allow to override logger